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

Link bid and reveal #896

Merged
merged 4 commits into from
Aug 29, 2024
Merged

Conversation

nodech
Copy link
Contributor

@nodech nodech commented Jun 6, 2024

Goals for this PR:

Tasks

  • Add height to the bid.
  • Add bid prevout to the reveal.
  • Add extra index in db for bid -> reveal.
  • Implement migration

NOTE: Not-owned migrated bid and reveals wont have the links, as TX records necessary for it are not recorded. They will instead default to nulls (-1 for bid height, Null Outpoint for reveal). In order to fix this issue, rescan the wallet.

This allows us to do minor release for new APIs that can utilize linked entries for various means. Currently, this does not add API endpoints. Ideally, these APIs will be implemented with #892

@nodech nodech added wallet-db part of the codebase breaking-major Backwards incompatible - Release version labels Jun 6, 2024
@nodech nodech added this to the hsd 7.0.0 milestone Jun 6, 2024
@nodech nodech requested a review from rithvikvibhu June 6, 2024 11:39
@coveralls
Copy link

Coverage Status

coverage: 68.583% (+0.03%) from 68.55%
when pulling e6144b0 on nodech:update-bidreveal-entries
into 509ffe5 on handshake-org:master.

@coveralls
Copy link

Coverage Status

coverage: 68.593% (+0.04%) from 68.551%
when pulling 5915b31 on nodech:update-bidreveal-entries
into e93bd53 on handshake-org:master.

@nodech nodech force-pushed the update-bidreveal-entries branch 2 times, most recently from 50d04e4 to d566bb2 Compare July 1, 2024 14:58
@coveralls
Copy link

Coverage Status

coverage: 68.649% (+0.1%) from 68.551%
when pulling d566bb2 on nodech:update-bidreveal-entries
into 106fbfa on handshake-org:master.

@coveralls
Copy link

Coverage Status

coverage: 68.659% (+0.1%) from 68.551%
when pulling 14019d1 on nodech:update-bidreveal-entries
into 106fbfa on handshake-org:master.

@nodech nodech added the migrations part of the codebase label Jul 2, 2024
bid: Add height to the bid entries.
  - Recover bid heights from the TXRecords. Historical not-owned bids will
    have them default (-1) for the migration, as TXRecords for them are not
    recorded.
  - Link owned bid <-> reveals. Historical not-owned bids will have them
    default (null outpoint) for the migration, as TXRecords for them are
    not recorded.
@coveralls
Copy link

coveralls commented Aug 28, 2024

Coverage Status

coverage: 70.033% (+0.1%) from 69.935%
when pulling fd2e57a on nodech:update-bidreveal-entries
into e88734f on handshake-org:master.

@nodech nodech merged commit 5294be7 into handshake-org:master Aug 29, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-major Backwards incompatible - Release version migrations part of the codebase wallet-db part of the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

txdb: REVEALs could be stored with pointer to the corresponding BID
2 participants