Versions in this module Expand all Collapse all v0 v0.1.0 Mar 25, 2020 Changes in this version + const BlockFailedChild + const BlockFailedMask + const BlockFailedValid + const BlockHaveData + const BlockHaveMask + const BlockHaveUndo + const BlockValidChain + const BlockValidHeader + const BlockValidMask + const BlockValidScripts + const BlockValidTransactions + const BlockValidTree + type BitcoinDAT struct + func NewBitcoinDAT(datPath string) (*BitcoinDAT, error) + func (d *BitcoinDAT) ReadBlockData(ib BlockIndex) ([]byte, error) + func (p *BitcoinDAT) GetBlockIndices() (BlockIndices, error) + type BlockIndex struct + BitcoinCoreVersion int32 + Bits uint32 + BlockVersion int32 + Hash Hash256 + Height int32 + MerkleRootHash Hash256 + Nonce uint32 + NumFile int32 + NumTx uint32 + PosData uint32 + PosUndo uint32 + PreviousHash Hash256 + Status uint32 + Time uint32 + type BlockIndexChain []BlockIndex + type BlockIndices []BlockIndex + func (bi *BlockIndices) GetMainChain() BlockIndexChain + type Hash256 [32]byte + func NewHash256WithReverse(b [32]byte) Hash256 + func (hash Hash256) String() string + type MovingBytes struct + func NewMovingBytes(b []byte) MovingBytes + func (mb *MovingBytes) PrintNext(n uint64, tag string) + func (mb *MovingBytes) ReadHash() (hash Hash256) + func (mb *MovingBytes) ReadInt32LitteEndian() (val int32) + func (mb *MovingBytes) ReadUInt32LitteEndian() (val uint32) + func (mb *MovingBytes) ReadVarInt() (n uint64)