remove old commented code

This commit is contained in:
greg 2018-04-17 14:54:22 -04:00
parent 8c39e40d24
commit 4cebc6eb4a
2 changed files with 3 additions and 21 deletions

View file

@ -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 {

View file

@ -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