From c39d73a555d3ffc1dbcd2b066ad9f82a8a402ae1 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Thu, 13 Jun 2019 16:04:11 -0700 Subject: [PATCH] Fix init shard state bug and remove faucet --- core/resharding.go | 2 +- node/node.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/resharding.go b/core/resharding.go index 2bb0224e9..27f379cdd 100644 --- a/core/resharding.go +++ b/core/resharding.go @@ -251,7 +251,7 @@ func GetInitShardState() types.ShardState { // priKey.DeserializeHexStr(genesis.GenesisFNAccounts[index].BlsPriKey) pub := &bls.PublicKey{} - pub.DeserializeHexStr(genesis.GenesisAccounts[index].BlsPublicKey) + pub.DeserializeHexStr(genesis.GenesisFNAccounts[index].BlsPublicKey) pubKey := types.BlsPublicKey{} pubKey.FromLibBLSPublicKey(pub) diff --git a/node/node.go b/node/node.go index 8c079dab9..c098b9d49 100644 --- a/node/node.go +++ b/node/node.go @@ -333,7 +333,7 @@ func New(host p2p.Host, consensusObj *consensus.Consensus, chainDBFactory shardc // TODO (leo): we need to have support of cross-shard tx later so that the token can be transferred from beacon chain shard to other tx shards. if node.isFirstTime { // Setup one time smart contracts - node.AddFaucetContractToPendingTransactions() + //node.AddFaucetContractToPendingTransactions() } else { node.AddContractKeyAndAddress(scFaucet) }