Fix previous miscommit of test code

pull/69/head
Rongjian Lan 6 years ago
parent 7859337a9a
commit 4031016122
  1. 20
      node/node_handler.go

@ -360,14 +360,14 @@ func (node *Node) UpdateUtxoAndState(newBlock *blockchain.Block) {
} }
// Clear transaction-in-Consensus list // Clear transaction-in-Consensus list
node.transactionInConsensus = []*blockchain.Transaction{} node.transactionInConsensus = []*blockchain.Transaction{}
if node.Consensus.IsLeader { //if node.Consensus.IsLeader {
fmt.Printf("TX in New BLOCK - %d %s\n", node.UtxoPool.ShardID, newBlock.IsStateBlock()) // fmt.Printf("TX in New BLOCK - %d %s\n", node.UtxoPool.ShardID, newBlock.IsStateBlock())
//fmt.Println(newBlock.Transactions) // //fmt.Println(newBlock.Transactions)
fmt.Printf("LEADER CURRENT UTXO - %d\n", node.UtxoPool.ShardID) // fmt.Printf("LEADER CURRENT UTXO - %d\n", node.UtxoPool.ShardID)
fmt.Println(node.UtxoPool.CountNumOfUtxos()) // fmt.Println(node.UtxoPool.CountNumOfUtxos())
fmt.Println(node.UtxoPool) // fmt.Println(node.UtxoPool)
fmt.Printf("LEADER LOCKED UTXO - %d\n", node.UtxoPool.ShardID) // fmt.Printf("LEADER LOCKED UTXO - %d\n", node.UtxoPool.ShardID)
fmt.Println(node.UtxoPool.CountNumOfLockedUtxos()) // fmt.Println(node.UtxoPool.CountNumOfLockedUtxos())
fmt.Println(node.UtxoPool.StringOfLockedUtxos()) // fmt.Println(node.UtxoPool.StringOfLockedUtxos())
} //}
} }

Loading…
Cancel
Save