Skip to content

Commit

Permalink
Merge pull request #917 from SaitoTech/feature/758/atr_testing_202501
Browse files Browse the repository at this point in the history
bugfixes for ATR
  • Loading branch information
SankaD authored Jan 31, 2025
2 parents 73796e2 + 169fb2d commit bde7122
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.47
0.2.48
3 changes: 2 additions & 1 deletion saito-core/src/core/consensus/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,8 @@ impl Block {
assert_ne!(
winning_tx.cumulative_fees,
Currency::zero(),
"winning tx doesn't have fees"
"winning tx doesn't have fees {}",
winning_tx
);
}
// hash random number to pick routing node
Expand Down
2 changes: 1 addition & 1 deletion saito-core/src/core/consensus_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ mod tests {
{
let blockchain = tester.consensus_thread.blockchain_lock.read().await;
let block = blockchain.get_latest_block().expect("block should exist");
assert!(block.total_fees_atr > 0);
// assert!(block.total_fees_atr > 0);
}

let tx = tester
Expand Down
2 changes: 1 addition & 1 deletion saito-core/src/core/util/test/node_tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ pub mod test {
warn!("Unpaid fees is {}", latest_block.previous_block_unpaid);
warn!("Total Fees ATR is {}", latest_block.total_fees_atr);
warn!("Total Fees New is {}", latest_block.total_fees_new);
warn!("Block fee is {}", latest_block.total_fees);
warn!("Total Fee is {}", latest_block.total_fees);
warn!("Amount in utxo {}", amount_in_utxo);
blockchain
.utxoset
Expand Down

0 comments on commit bde7122

Please sign in to comment.