Skip to content
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

Don't fee-dec on coinbase transactions #5808

Merged
merged 3 commits into from
Sep 1, 2020
Merged

Conversation

bkase
Copy link
Member

@bkase bkase commented Aug 31, 2020

It turns out we were sticking the amount in the fee slot, so this dec
operation was invalidating the entire coinbase.

rosetta-cli check:data has no errors for ./start.sh CURL blocks (no transactions present, but coinbases)

It turns out we were sticking the amount in the fee slot, so this dec
operation was invalidating the entire coinbase.
Base automatically changed from rosetta/db-connection-pooling to develop August 31, 2020 15:53
@@ -85,14 +85,13 @@ module Internal_command_info = struct
match t.kind with
| `Coinbase ->
(* The coinbase transaction is really incrementing by the coinbase
* amount and then decrementing by the fees paid. *)
[ {Op.label= `Coinbase_inc; related_to= None}
; {Op.label= `Fee_payer_dec; related_to= Some `Coinbase_inc} ]
Copy link
Member

@deepthiskumar deepthiskumar Aug 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you not have to track the prover fee that gets deducted from the coinbase amount or is that part of the list of fee transfers?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is part of the fee transfer list (I think). Anyway, getting the rosetta validation suite to pass will uncover if this is true.

@bkase bkase added the ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR label Sep 1, 2020
@bkase bkase added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label Sep 1, 2020
@mergify mergify bot merged commit f027b7b into develop Sep 1, 2020
@mergify mergify bot deleted the rosetta/coinbase-no-dec branch September 1, 2020 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants