Skip to content

Commit

Permalink
Fix ckb-rpc test_fee_rate_statics unit test, first element in txs_fee…
Browse files Browse the repository at this point in the history
…s is belong to cellbase
  • Loading branch information
eval-exec committed Sep 14, 2024
1 parent 1a15a68 commit 5bf859f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions rpc/src/tests/fee_rate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,16 @@ fn test_fee_rate_statics() {
total_difficulty: 0u64.into(),
total_uncles_count: 0,
verified: None,
txs_fees: vec![Capacity::shannons(i * i * 100)],
cycles: Some(vec![i * 100]),
txs_sizes: Some(vec![i * 100]),

// first element in txs_fees is belong to cellbase
txs_fees: vec![
Capacity::shannons(123, 456),
Capacity::shannons(0, i * i * 100),
],
// first element in cycles is belong to cellbase
cycles: Some(vec![0, i * 100]),
// first element in txs_sizes is belong to cellbase
txs_sizes: Some(vec![123456, i * 100]),
};
provider.append(i, ext);
}
Expand Down

0 comments on commit 5bf859f

Please sign in to comment.