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

Filling Sqlite DB with missing Transaction data from Bitcoin DB #258

Merged
merged 117 commits into from
Jun 1, 2022

Conversation

andyoknen
Copy link
Collaborator

@andyoknen andyoknen commented Apr 2, 2022

  • TX Inputs
  • TX Outputs with empty address - OP_RETURN outs

andyoknen and others added 8 commits April 1, 2022 12:19
commit 9cb7dd4
Merge: dcd1ed1 b660f9f
Author: Andy Oknen <[email protected]>
Date:   Fri Apr 1 17:35:36 2022 +0300

    Merge pull request #242 from tawmaz/bitcoin_unittests

    Fix unittests and clean transactions in sqlite database

commit b660f9f
Author: tawmaz <[email protected]>
Date:   Mon Mar 21 16:21:23 2022 -0700

    Remove in-progress SQL database transaction validation functions

     - Remove GetTransactionHashes, verifydb, and CleanExpiredTransactions until those functions can be fully developed.

commit 5fefc67
Author: tawmaz <[email protected]>
Date:   Thu Mar 10 22:17:40 2022 -0800

    Fix nested sqlite transaction in CleanExpiredTransactions

commit 0b3a87c
Author: tawmaz <[email protected]>
Date:   Mon Feb 28 16:00:02 2022 -0800

    New user account creation in pocketnet_social_tests and code formating

commit 0221ddc
Author: tawmaz <[email protected]>
Date:   Thu Feb 10 17:21:23 2022 -0800

    Fix orphan transactions in SQLite database and add unitttest

    - Clean expired transactions from SQLite Payload and Transactions db

    - Fix error in SQLite query for orphaned transactions

    - Enable mempool_tests

    - Add verifydb function to validate sqlite transactions are present on the blockchain

    - Additional debugging and check mempool for existance of transactions

    - Re-arrange locks in LoadMemPool to be consistent with lock usage through rest of code

    - Refactor CleanSQLite function and print error if transaction to delete is present in blocks or mempool

    - Verify DB deletes orphan transactions and add removal reason to CleanSQLite logging

    - Use GetTransaction call to verify TX is valid

    - Fix segmentation fault caused by accessing mempool TX which has been removed

    - Enable unittests txvalidation_tests, txvalidationcache_tests, and validation_block_tests

    - Remove unused parameter from ProcessNewBlock

    - Add test pocketnet_block_tests

    - pocketnet_block_tests: test InvalidateBlock and adding block to chain

    - Add transactions to block from mempool

    - Fix execution of unittests and disable Segwit on regtest for now

    - Fix pocketnet_block_tests error by setting up mocktime for tests

    - Intermittent test failures were occuring because blocks were generated with same timestamp and same hash value due to one second time stamp granularity.  Now timestamp is incremented for each block.

    - Enable wallet tests.
@andyoknen andyoknen changed the base branch from 0.20 to 0.21 April 2, 2022 13:44
@andyoknen andyoknen added the documentation Documentation issues label Apr 4, 2022
@andyoknen andyoknen added this to the v0.21.0 milestone Apr 4, 2022
@andyoknen andyoknen marked this pull request as ready for review June 1, 2022 12:47
@andyoknen andyoknen merged commit 039f41f into 0.21 Jun 1, 2022
@andyoknen andyoknen deleted the 0.21.todo branch June 1, 2022 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants