Versions in this module Expand all Collapse all v1 v1.0.9 Dec 22, 2022 v1.0.8 Dec 22, 2022 Changes in this version + func NewBlockResponse(timestamp int64, hash [32]byte, ...) *network.BlockResponse + func NewEmptyBlockResponse(timestamp int64) *network.BlockResponse + func NewGenesisBlockResponse(validatorWalletAddress string) *network.BlockResponse + func NewRewardedBlockResponse(previousHash [32]byte, timestamp int64) *network.BlockResponse + type BlockchainMock struct + AddBlockFunc func(timestamp int64, transactions []*network.TransactionResponse, ...) + BlocksFunc func() []*network.BlockResponse + CalculateTotalAmountFunc func(currentTimestamp int64, blockchainAddress string) uint64 + CopyFunc func() protocol.Blockchain + IsEmptyFunc func() bool + VerifyFunc func(timestamp int64) + func (mock *BlockchainMock) AddBlock(timestamp int64, transactions []*network.TransactionResponse, ...) + func (mock *BlockchainMock) AddBlockCalls() []struct{ ... } + func (mock *BlockchainMock) Blocks() []*network.BlockResponse + func (mock *BlockchainMock) BlocksCalls() []struct{} + func (mock *BlockchainMock) CalculateTotalAmount(currentTimestamp int64, blockchainAddress string) uint64 + func (mock *BlockchainMock) CalculateTotalAmountCalls() []struct{ ... } + func (mock *BlockchainMock) Copy() protocol.Blockchain + func (mock *BlockchainMock) CopyCalls() []struct{} + func (mock *BlockchainMock) IsEmpty() bool + func (mock *BlockchainMock) IsEmptyCalls() []struct{} + func (mock *BlockchainMock) Verify(timestamp int64) + func (mock *BlockchainMock) VerifyCalls() []struct{ ... } + type RegistryMock struct + IsRegisteredFunc func(address string) (bool, error) + func (mock *RegistryMock) IsRegistered(address string) (bool, error) + func (mock *RegistryMock) IsRegisteredCalls() []struct{ ... } + type TransactionsPoolMock struct + AddTransactionFunc func(transactionRequest *network.TransactionRequest, neighbors []network.Neighbor) + TransactionsFunc func() []*network.TransactionResponse + func (mock *TransactionsPoolMock) AddTransaction(transactionRequest *network.TransactionRequest, neighbors []network.Neighbor) + func (mock *TransactionsPoolMock) AddTransactionCalls() []struct{ ... } + func (mock *TransactionsPoolMock) Transactions() []*network.TransactionResponse + func (mock *TransactionsPoolMock) TransactionsCalls() []struct{}