ckb
ckb copied to clipboard
`get_fee_rate_statistics` returns apparently incorrect data on devnet
Hello folks at Nervos, I'm running a devnet for testing iCKB and I see an unexpected behavior.
Current Behavior
I have a stream of transactions with 1000 feeRate, but then when I check get_fee_rate_statistics
both mean and median feeRate seems almost double. So went back to my code, I double checked and my transactions indeed have the intended feeRate, I'm not overpaying.
Also I tried increasing the feeRate to 10^9, but get_fee_rate_statistics
consistently returns around double of the intended fee rate.
Also I tried setting feeRate to 999 and indeed the txPool reject the transaction as expected.
Expected Behavior
get_fee_rate_statistics
should return feeRate mean and median of the past transactions feeRate.
Environment
- CKB version: ckb 0.113.0 (82871a3 2024-01-09)
- Chain: dev
- Operating system: Ubuntu 20.04
- Arch: x86_64
- Installation: GitHub Release