aboutsummaryrefslogtreecommitdiff
path: root/examples/chain/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chain/main.go')
-rw-r--r--examples/chain/main.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/chain/main.go b/examples/chain/main.go
index 26fc5ce..94c5d6b 100644
--- a/examples/chain/main.go
+++ b/examples/chain/main.go
@@ -8,10 +8,10 @@ import (
"github.com/ava-labs/coreth/core/types"
"github.com/ava-labs/coreth/eth"
"github.com/ava-labs/coreth/params"
- "github.com/ava-labs/go-ethereum/common"
- "github.com/ava-labs/go-ethereum/common/hexutil"
- "github.com/ava-labs/go-ethereum/log"
- "github.com/ava-labs/go-ethereum/rlp"
+ "github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/ethereum/go-ethereum/log"
+ "github.com/ethereum/go-ethereum/rlp"
"math/big"
"sync"
)
@@ -138,6 +138,8 @@ func run(config *eth.Config, a1, a2, b1, b2 int) {
bob := NewTestChain("bob", config, aliceBlk, bobBlk, aliceAck, bobAck)
alice.Start()
bob.Start()
+ log.Info("alice genesis", "block", alice.chain.GetGenesisBlock().Hash().Hex())
+ log.Info("bob genesis", "block", bob.chain.GetGenesisBlock().Hash().Hex())
alice.GenRandomTree(a1, a2)
log.Info("alice finished generating the tree")
//time.Sleep(1 * time.Second)
@@ -205,7 +207,7 @@ func main() {
ByzantiumBlock: big.NewInt(0),
ConstantinopleBlock: big.NewInt(0),
PetersburgBlock: big.NewInt(0),
- IstanbulBlock: nil,
+ IstanbulBlock: big.NewInt(0),
Ethash: nil,
}