-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diffRewardMap error for test that transfers funds from treasury to stake address using MIR certificate #981
Comments
@ArturWieczorek What era does that transfer happen in? Are you sure there were not two transfers in that epoch? |
@erikd It happens in This is one test https://github.com/input-output-hk/cardano-node-tests/blob/master/cardano_node_tests/tests/test_mir_certs.py#L429 but it is parametrized:
so in effect there are two test "instances", one sends funds from the reserves pot to stake address and the other one from treasury pot to stake address. I asked about two transfers @mkoura and have some details from him:
|
If a rollback is required across the point where rewards are inserted, rewards may need to be reinserted. This is done using by inserting each rewards and silently discarding any error if the record is already there. Unfortunately detecting if a record is already there fails for null-able fields and MIR reward payments have a NULL `pool_id` field because the reward was not related to a pool. This fix just does a manual test for all `reward` table entries with `NULL` for the `pool_id` and checks that the record is absent before trying to insert it. Closes: #981
OS:
Your OS: Linux Mint 20.2 Cinnamon
Linux Kernel: 5.4.0-90-generic
Machine Specs:
Processor: AMD Ryzen 9 3900X 12-Core Processor × 12
RAM: 32 GB
Versions
The
db-sync
version :32e69cd7010686bc7438473e4c4c48511058a31d
onmaster
PostgreSQL version: 12.8
Build/Install Method
The method you use to build or install
cardano-db-sync
:cardano-db-sync
was built withnix
using official instruction docs.Run method
The method you used to run
cardano-db-sync
(eg Nix/Docker/systemd/none):Additional context
This was discovered during our nighlty tests. Error happened during a test that transfers funds from treasury to stake address using MIR certificate. This was for commit: 32e69cd on
master
however thevalidate.hs
https://github.com/input-output-hk/cardano-db-sync/blob/master/cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Validate.hs has not been changed in 20 days so this can happen for version12.0.0
ofdb-sync
too.The test: https://github.com/input-output-hk/cardano-node-tests/blob/master/cardano_node_tests/tests/test_governance.py#L602
Problem Report
diffRewardMap
error for test that transfers funds from treasury to stake address using MIR certificate.The text was updated successfully, but these errors were encountered: