|
|
@ -367,14 +367,9 @@ 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())
|
|
|
|
node.log.Info("TX in New BLOCK", "num", len(newBlock.Transactions), "ShardId", node.UtxoPool.ShardID, "IsStateBlock", newBlock.IsStateBlock()) |
|
|
|
// //fmt.Println(newBlock.Transactions)
|
|
|
|
node.log.Info("LEADER CURRENT UTXO", "num", node.UtxoPool.CountNumOfUtxos(), "ShardId", node.UtxoPool.ShardID) |
|
|
|
// fmt.Printf("LEADER CURRENT UTXO - %d\n", node.UtxoPool.ShardID)
|
|
|
|
node.log.Info("LEADER LOCKED UTXO", "num", node.UtxoPool.CountNumOfLockedUtxos(), "ShardId", node.UtxoPool.ShardID) |
|
|
|
// fmt.Println(node.UtxoPool.CountNumOfUtxos())
|
|
|
|
} |
|
|
|
// fmt.Println(node.UtxoPool)
|
|
|
|
|
|
|
|
// fmt.Printf("LEADER LOCKED UTXO - %d\n", node.UtxoPool.ShardID)
|
|
|
|
|
|
|
|
// fmt.Println(node.UtxoPool.CountNumOfLockedUtxos())
|
|
|
|
|
|
|
|
// fmt.Println(node.UtxoPool.StringOfLockedUtxos())
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|