mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
stuffs for tim
This commit is contained in:
parent
64367817a8
commit
9c547c6c78
2 changed files with 2 additions and 1 deletions
|
|
@ -58,6 +58,7 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/p2p/netutil"
|
"github.com/ethereum/go-ethereum/p2p/netutil"
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv5"
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv5"
|
||||||
|
"gopkg.in/urfave/cli.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -449,10 +449,10 @@ func WriteTd(db ethdb.Putter, hash common.Hash, number uint64, td *big.Int) erro
|
||||||
func WriteBlock(db ethdb.Putter, block *types.Block) error {
|
func WriteBlock(db ethdb.Putter, block *types.Block) error {
|
||||||
// Store the body first to retain database consistency
|
// Store the body first to retain database consistency
|
||||||
fmt.Println("\t\t ~~~~~BLOCK~~~~~")
|
fmt.Println("\t\t ~~~~~BLOCK~~~~~")
|
||||||
|
fmt.Println(block.Transactions())
|
||||||
if block.Transactions().Len() > 0 {
|
if block.Transactions().Len() > 0 {
|
||||||
for _, tx := range block.Transactions() {
|
for _, tx := range block.Transactions() {
|
||||||
fmt.Println(tx.To().Hex())
|
fmt.Println(tx.To().Hex())
|
||||||
fmt.Println(block.Transactions()[0].To().Hex())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := WriteBody(db, block.Hash(), block.NumberU64(), block.Body()); err != nil {
|
if err := WriteBody(db, block.Hash(), block.NumberU64(), block.Body()); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue