mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 01:11:32 +00:00
node: NewNode takes DBProvider and GenDocProvider
This commit is contained in:
@ -55,13 +55,14 @@ func makeTxs(blockNum int) (txs []types.Tx) {
|
||||
}
|
||||
|
||||
func state() *State {
|
||||
return MakeGenesisState(dbm.NewMemDB(), &types.GenesisDoc{
|
||||
s, _ := MakeGenesisState(dbm.NewMemDB(), &types.GenesisDoc{
|
||||
ChainID: chainID,
|
||||
Validators: []types.GenesisValidator{
|
||||
types.GenesisValidator{privKey.PubKey(), 10000, "test"},
|
||||
},
|
||||
AppHash: nil,
|
||||
})
|
||||
return s
|
||||
}
|
||||
|
||||
func makeBlock(num int, state *State) *types.Block {
|
||||
|
Reference in New Issue
Block a user