|
|
@ -11,9 +11,12 @@ import ( |
|
|
|
"os" |
|
|
|
"os" |
|
|
|
"os/exec" |
|
|
|
"os/exec" |
|
|
|
"strconv" |
|
|
|
"strconv" |
|
|
|
|
|
|
|
"sync/atomic" |
|
|
|
"syscall" |
|
|
|
"syscall" |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/crypto" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/harmony-one/harmony/core" |
|
|
|
"github.com/harmony-one/harmony/core" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
|
"github.com/ethereum/go-ethereum/common" |
|
|
@ -315,6 +318,10 @@ func (node *Node) PostConsensusProcessing(newBlock *types.Block) { |
|
|
|
|
|
|
|
|
|
|
|
node.AddNewBlock(newBlock) |
|
|
|
node.AddNewBlock(newBlock) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Update contract deployer's nonce so default contract like faucet can issue transaction with current nonce
|
|
|
|
|
|
|
|
nonce := node.GetNonceOfAddress(crypto.PubkeyToAddress(node.ContractDeployerKey.PublicKey)) |
|
|
|
|
|
|
|
atomic.StoreUint64(&node.ContractDeployerCurrentNonce, nonce) |
|
|
|
|
|
|
|
|
|
|
|
if node.Consensus.ShardID == 0 { |
|
|
|
if node.Consensus.ShardID == 0 { |
|
|
|
|
|
|
|
|
|
|
|
// ConfirmedBlockChannel which is listened by drand leader who will initiate DRG if its a epoch block (first block of a epoch)
|
|
|
|
// ConfirmedBlockChannel which is listened by drand leader who will initiate DRG if its a epoch block (first block of a epoch)
|
|
|
|