Skip to content

Commit

Permalink
Fix get_fee_rate_statistics unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Sep 21, 2024
1 parent 279f3aa commit cfd8a7f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions rpc/src/tests/fee_rate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ fn test_fee_rate_statics() {
total_uncles_count: 0,
verified: None,

// first element in txs_fees is belong to cellbase
txs_fees: vec![
Capacity::shannons(i * 1234),
Capacity::shannons(i * i * 100),
],
// first element in cycles is belong to cellbase
cycles: Some(vec![0, i * 100]),
// txs_fees length is equal to block_ext.cycles length
// and txs_fees does not include cellbase
txs_fees: vec![Capacity::shannons(i * i * 100)],
// cycles does not include cellbase
cycles: Some(vec![i * 100]),
// txs_sizes length is equal to block_ext.txs_fees length + 1
// first element in txs_sizes is belong to cellbase
txs_sizes: Some(vec![i * 5678, i * 100]),
};
Expand Down

0 comments on commit cfd8a7f

Please sign in to comment.