CodeChain-io / CodeChain-io/cron-jobs
[fee-monitor] Fee calculation error in a term's last block
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
The fee monitor said that there is a fee calculation error in the CodeChain Main network.
I checked the stakeholder's balance at the block, there was no error at the block.
There is a transaction with 100 CCC fee and each stakeholder received 10 CCCs.
I copied the error message:
```
{
"server": "mainnet",
"moment": {
"tag": "block",
"value": 5343247
},
"errors": [
{
"type": "stakeholder",
"account": "cccqyhk4388mymckk40ctf0skgkl8nf89f6sgpzwzke",
"expected": "10010145050",
"actual": "10010145030"
},
{
"type": "stakeholder",
"account": "cccq9g0ayvrvmzcs2qf8yygat0dg9073g5xccd3sydw",
"expected": "10010144950",
"actual": "10010144930"
},
{
"type": "stakeholder",
"account": "cccq9hpz4m5sx0ea42l2hfm8nja0xzzsnx0vv0p7mzw",
"expected": "10010144850",
"actual": "10010144830"
},
{
"type": "stakeholder",
"account": "cccqxgwashdy0fp5cwlvp4ntkzmy3xvjedfjgfzrxf7",
"expected": "10010144850",
"actual": "10010144830"
},
{
"type": "stakeholder",
"account": "cccqxgupxd5j0squ7t8w3etxjf0fn2z4axz0spycqum",
"expected": "10010145250",
"actual": "10010145230"
},
{
"type": "stakeholder",
"account": "cccqx7ycl2awx6awqyjf9ns4532xj7eg63w6v6hlnu0",
"expected": "10010144850",
"actual": "10010144830"
},
{
"type": "stakeholder",
"account": "cccq8r9as2drgp4xwfzz7t0xc9k977y8mw7hus3zq8e",
"expected": "10010144950",
"actual": "10010144930"
},
{
"type": "stakeholder",
"account": "cccq826j0p6fvpk02p0n5th7ukqu5clrnyldcxgrgtz",
"expected": "10010144850",
"actual": "10010144830"
},
{
"type": "stakeholder",
"account": "cccq8dhpcfqt94mx8dntxxd6420782vtd4tpvpgcgjh",
"expected": "10010145250",
"actual": "10010145230"
},
{
"type": "stakeholder",
"account": "cccq8u8se8k00vcqk4pl707qe9v60hs3jj27g4rqkm9",
"expected": "9417937350",
"actual": "9417937330"
}
]
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the fee-monitor calculation and its handling of the term's last block, then reproduce or inspect block 5343247 on the mainnet data. Compare the reported expected and actual stakeholder balances with the transaction's 100 CCC fee distribution; done means the monitor no longer reports a false error for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100