selectedTxs included cross-shard txs, so this need to be changed

pull/74/head
Rongjian Lan 6 years ago
parent 7b560ad46d
commit 47d8aba30f
  1. 2
      node/node_handler.go

@ -310,7 +310,7 @@ func (node *Node) WaitForConsensusReady(readySignal chan struct{}) {
node.log.Debug("Start selecting transactions")
selectedTxs, crossShardTxAndProofs := node.getTransactionsForNewBlock(MaxNumberOfTransactionsPerBlock)
if len(selectedTxs)+len(crossShardTxAndProofs) < MinNumberOfTransactionsPerBlock {
if len(selectedTxs) < MinNumberOfTransactionsPerBlock {
node.log.Debug("No valid transactions exist", "pendingTx", len(node.pendingTransactions))
} else {
node.log.Debug("Creating new block", "numAllTxs", len(selectedTxs), "numCrossTxs", len(crossShardTxAndProofs), "pendingTxs", len(node.pendingTransactions), "currentChainSize", len(node.blockchain.Blocks))

Loading…
Cancel
Save