diff --git a/core/blockchain.go b/core/blockchain.go index 411b4a7438..8c72431cd8 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -909,24 +909,6 @@ func (bc *BlockChain) WriteBlockWithState(block *types.Block, receipts []*types. if err := shyftdb.WriteBlock(bc.blockExplorerDb, block); err != nil { return NonStatTy, err } - //fmt.Println(shyftdb.GetAllBlocks(bc.blockExplorerDb)) - //result := shyftdb.GetBlock(bc.blockExplorerDb, block) - - // this is WIP for decoding bytes rather than hex strings - // maybe this will be dropped - /*for i, txhash := range result { - //dst := make([]byte, hex.DecodedLen(len(txhash))) - content := hex.Dump(txhash) - fmt.Printf("%s", content) - }*/ - - //buf := bytes.NewBuffer(result) - //strs2 := []string{} - //gob.NewDecoder(buf).Decode(&strs2) - //fmt.Println("ALL TRANSACTIONS:") - // - //fmt.Println("the returned array is") - //fmt.Printf("%v", strs2) root, err := state.Commit(bc.chainConfig.IsEIP158(block.Number())) if err != nil { diff --git a/shyftdb/shyft_database_util.go b/shyftdb/shyft_database_util.go index c87be743d6..660f3bb8df 100644 --- a/shyftdb/shyft_database_util.go +++ b/shyftdb/shyft_database_util.go @@ -222,9 +222,9 @@ func WriteMinerReward(db *leveldb.DB, block *types.Block) { } } -//////////////////////////// -// Meant for internal tests -/////////////////////////// +/////////// +// Getters +////////// func GetAllBlocks(db *leveldb.DB) []SBlock{ var arr []SBlock