Versions in this module Expand all Collapse all v1 v1.0.0 Apr 12, 2019 Changes in this version + var AliceAddrV = common.HexToAddress("0x00005586B883Ec6dd4f8c26063E18eb4Bd228e59c3E9") + var AlicePrivV = "289c2857d4598e37fb9647507e47a309d6133539bf21a8b9cb6df88fd5232031" + var BobAddrV = common.HexToAddress("0x0000970e8128aB834E8EAC17aB8E3812f010678CF791") + var BobPrivV = "289c2857d4598e37fb9647507e47a309d6133539bf21a8b9cb6df88fd5232032" + func CreatKeyV() (*ecdsa.PrivateKey, *ecdsa.PrivateKey) + func CreatTestTxV() (*model.Transaction, *model.Transaction) + func CreateBlock(number uint64) *model.Block + func CreateBlock2(diff common.Difficulty, number uint64) *model.Block + func CreateBlockByPH(number uint64, preHash common.Hash) *model.Block + func CreateBlockBySeed(number uint64, preHash, seed common.Hash, proof, pubKey []byte) *model.Block + func CreateBlockV() (*model.Block, *model.Block) + func CreateEmptyBlockByPH(number uint64, preHash common.Hash) *model.Block + func CreateKey() (*ecdsa.PrivateKey, *ecdsa.PrivateKey) + func CreateOneTxBlockByPH(number uint64, preHash common.Hash, transaction *model.Transaction) *model.Block + func CreateSpecialBlock(number uint64) *model.Block + func CreateTestStateDBV() (state_processor.StateStorage, *state_processor.AccountStateDB, common.Hash) + func CreateTestTx() (*model.Transaction, *model.Transaction) + func CreateTxsBlockByPH(number uint64, preHash common.Hash, transactions []*model.Transaction) *model.Block + func FactoryCreateTx(senderPrk *ecdsa.PrivateKey, nonce uint64, toAddress common.Address, ...) *model.Transaction + func GetEnode(str string) *enode.Node + func InitTestV() (alice, bob *ecdsa.PrivateKey, fr *fakeChainReader) + func NewFakeReader(block *model.Block) *fakeChainReader + type FAddress struct + func NewFAddress(count int) *FAddress + func (receiver *FAddress) Alloc() map[common.Address]*big.Int + func (receiver *FAddress) GetAddress(index int) common.Address + func (receiver *FAddress) GetPrk(index int) *ecdsa.PrivateKey + type FBlock struct + func NewFBlock(number uint64, perHash common.Hash, difficulty common.Difficulty, ...) *FBlock + func (receiver *FBlock) AddInterLink(il model.InterLink) *FBlock + func (receiver *FBlock) AddTx(tx *model.Transaction) *FBlock + func (receiver *FBlock) AddTxs(txs []*model.Transaction) *FBlock + func (receiver *FBlock) AddVers(vers []model.AbstractVerification) *FBlock + type FTx struct + func NewFTx(prkStr *ecdsa.PrivateKey, nonce uint64) *FTx + func (receiver *FTx) CreateTx(toAddress common.Address, amount *big.Int, fee *big.Int, data []byte) *FTx + func (receiver *FTx) GetTxs() []*model.Transaction