mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
remove old commented code
This commit is contained in:
parent
8c39e40d24
commit
4cebc6eb4a
2 changed files with 3 additions and 21 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue