Refactoring genesis, including PubKey into TxInput

This commit is contained in:
Jae Kwon
2014-12-28 00:44:56 -08:00
parent 70eb75dca7
commit f91665fe07
17 changed files with 308 additions and 178 deletions

View File

@ -26,11 +26,11 @@ type Node struct {
func NewNode() *Node {
// Get BlockStore
blockStoreDB := db_.NewMemDB() // TODO configurable db.
blockStoreDB := db_.GetDB("blockstore")
blockStore := block.NewBlockStore(blockStoreDB)
// Get State
stateDB := db_.NewMemDB() // TODO configurable db.
stateDB := db_.GetDB("state")
state := state_.LoadState(stateDB)
if state == nil {
state = state_.MakeGenesisStateFromFile(stateDB, config.GenesisFile())