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

Transactions are reset after restart #6745

Closed
NejcZdovc opened this issue Nov 4, 2019 · 3 comments · Fixed by brave/brave-core#3917
Closed

Transactions are reset after restart #6745

NejcZdovc opened this issue Nov 4, 2019 · 3 comments · Fixed by brave/brave-core#3917

Comments

@NejcZdovc
Copy link
Contributor

Description

Steps to Reproduce

  1. claim promotion
  2. tip 3 times 5 BAT to verified publisher
  3. wait for transaction to be completely processed
  4. open ledger_state
  5. make sure that transaction data is in there
  6. restart browser
  7. open ledger_sate

Actual result:

Transaction object is empty

"transactions": [
    {
      "viewingId": "",
      "surveyorId": "",
      "rates": {},
      "contribution_probi": "",
      "submissionStamp": "",
      "anonizeViewingId": "",
      "registrarVK": "",
      "masterUserToken": "",
      "surveyorIds": [],
      "votes": 0,
      "ballots": []
    }
  ],

Expected result:

Transaction object should persist after restart

Reproduces how often:

Brave version (brave://version info)

Version/Channel Information:

  • Can you reproduce this issue with the current release?
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the dev channel?
  • Can you reproduce this issue with the nightly channel?

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

@NejcZdovc NejcZdovc added feature/rewards priority/P1 A very extremely bad problem. We might push a hotfix for it. 1.0 labels Nov 4, 2019
@jhoneycutt
Copy link

jhoneycutt commented Nov 5, 2019

brave/brave-core@0177ac5 removed some unused values from being read from/written to ledger_state, but it did not remove the code that checked for them in TRANSACTION_ST::loadFromJson.

@NejcZdovc
Copy link
Contributor Author

as @jhoneycutt said it regressed with #5917 which landed in 0.71

@LaurenWags
Copy link
Member

LaurenWags commented Nov 11, 2019

Verified passed with

Brave 0.71.114 Chromium: 78.0.3904.97 (Official Build) (64-bit)
Revision 021b9028c246d820be17a10e5b393ee90f41375e-refs/branch-heads/3904@{#859}
OS macOS Version 10.13.6 (Build 17G5019)

Verification passed on

Brave 0.71.114 Chromium: 78.0.3904.97 (Official Build) (64-bit)
Revision 021b9028c246d820be17a10e5b393ee90f41375e-refs/branch-heads/3904@{#859}
OS Windows 10 OS Version 1903 (Build 18362.418)

Verification passed on

Brave 0.71.114 Chromium: 78.0.3904.97 (Official Build) (64-bit)
Revision 021b9028c246d820be17a10e5b393ee90f41375e-refs/branch-heads/3904@{#859}
OS Ubuntu 18.04 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants