Merge pull request #1038 from rlan35/rj_fork

Fix init shard state bug and remove faucet
pull/1039/head
Rongjian Lan 6 years ago committed by GitHub
commit 057fc4e96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/resharding.go
  2. 2
      node/node.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)

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

Loading…
Cancel
Save