cherry-picked simulation scripts

This commit is contained in:
greg 2018-04-14 11:28:02 -04:00
parent 68b124382a
commit 486d8bbb81
6 changed files with 3 additions and 1 deletions

View file

@ -447,6 +447,9 @@ func WriteTd(db ethdb.Putter, hash common.Hash, number uint64, td *big.Int) erro
// WriteBlock serializes a block into the database, header and body separately.
func WriteBlock(db ethdb.Putter, block *types.Block) error {
fmt.Println("+++++++++++++++++++++++++++")
fmt.Println(block.Transactions())
fmt.Println("+++++++++++++++++++++++++++")
// Store the body first to retain database consistency
if err := WriteBody(db, block.Hash(), block.NumberU64(), block.Body()); err != nil {
return err

View file

@ -7,6 +7,5 @@ import (
)
func WriteBlock(db ethdb.Putter, block *types.Block) error {
fmt.Println(block)
return nil
}