Closed chanakasameera closed 1 year ago
@chanakasameera: Thanks for opening an issue, it is currently awaiting triage.
The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.
@chanakasameera: There are no 'area' labels on this issue. Adding an appropriate label will greatly expedite the process for us. You can add as many area as you see fit. If you are unsure what to do you can ignore this!
You can add area labels by leaving a /area
comment.
@chanakasameera AFAIK, these AccountHistory
are legitimately have neither txid nor txn.
Jellyfish-api-core listAccountHistory
is forced to have no_rewards
true as well thus result have non undefined values for these two. Maybe we should close this?
What happened:
The
txn
andtxid
fields are missing in anAccountHistory
instance returned from pagination for pool rewards (options.no_rewards = false
) oflistAccountHistory
RPCWhat you expected to happen:
The
txn
andtxid
fields should be included in theAccountHistory
How to reproduce it (as minimally and precisely as possible):
Reproduce by adding a test into [packages/jellyfish-api-core/tests/category/account/listAccountHistory.test.ts]
Anything else we need to know?:
https://github.com/DeFiCh/ain/blob/acd6ce34181f54ab97a45733a6b830961ee1450f/src/masternodes/rpc_accounts.cpp#L65 According to this
rewardhistoryToJSON
method implementation in Ain, Thetxn
andtxid
fields are not included