Documentation ¶
Index ¶
- Constants
- func CheckHeader(r io.ReadSeeker, height int64, p *chaincfg.Params) bool
- func CheckRange(r io.ReadSeeker, first, last int64, p *chaincfg.Params) bool
- func MakeMerkleParent(left *wire.ShaHash, right *wire.ShaHash) *wire.ShaHash
- type MyAdr
- type SPVCon
- func (s *SPVCon) AskForHeaders() error
- func (s *SPVCon) AskForMerkBlocks(current, last uint32) error
- func (s *SPVCon) IngestHeaders(m *wire.MsgHeaders) (bool, error)
- func (s *SPVCon) Open(remoteNode string, hfn string, inTs *TxStore) error
- func (s *SPVCon) PongBack(nonce uint64)
- func (s *SPVCon) SendFilter(f *bloom.Filter)
- type TxStore
- func (t *TxStore) AbsorbTx(tx *wire.MsgTx) error
- func (t *TxStore) AddAdr(a btcutil.Address, kidx uint32)
- func (t *TxStore) AddTxid(txid *wire.ShaHash) error
- func (t *TxStore) ExpellTx(tx *wire.MsgTx) error
- func (t *TxStore) GimmeFilter() (*bloom.Filter, error)
- func (t *TxStore) IngestTx(tx *wire.MsgTx) error
- type Utxo
Constants ¶
View Source
const ( // NETVERSION ... NETVERSION = wire.TestNet3 // VERSION ... VERSION = 70011 )
Variables ¶
This section is empty.
Functions ¶
func CheckHeader ¶
CheckHeader ...
func CheckRange ¶
CheckRange verifies a range of headers. It checks their proof of work, difficulty adjustments, and that they all link in to each other properly. This is the only blockchain technology in the whole code base. Returns false if anything bad happens. Returns true if the range checks out with no errors.
Types ¶
type SPVCon ¶
type SPVCon struct { WBytes uint64 // total bytes written RBytes uint64 // total bytes read TS *TxStore // contains filtered or unexported fields }
SPVCon ...
func (*SPVCon) AskForMerkBlocks ¶
AskForMerkBlocks ...
func (*SPVCon) IngestHeaders ¶
func (s *SPVCon) IngestHeaders(m *wire.MsgHeaders) (bool, error)
IngestHeaders ...
type TxStore ¶
type TxStore struct { KnownTxids []*wire.ShaHash Utxos []Utxo // stacks on stacks Sum int64 // racks on racks Adrs []MyAdr // endeavouring to acquire capital }
TxStore ...
func (*TxStore) GimmeFilter ¶
GimmeFilter ... or I'm gonna fade away
Click to show internal directories.
Click to hide internal directories.