Skip to content

Conversation

@furszy
Copy link
Member

@furszy furszy commented Jun 16, 2023

As the benchmarks inside wallet_create_tx.cpp assert the wallet
balance at the end, they require all blocks to be scanned by the wallet.
So, we need to ensure that no blocks are skipped by the recently added
wallet birth time functionality.

This just means setting the wallet birth time to the genesis block time.
So the wallet is always older than any new block.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jun 16, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK hernanmarino, TheCharlatan, achow101

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot added the Tests label Jun 16, 2023
@furszy furszy force-pushed the 2023_bench_fix_wallet_create_tx branch from ed88774 to 4eb34fd Compare June 16, 2023 23:57
As the benchmarks inside wallet_create_tx.cpp assert the
wallet balance at the end, they require all
blocks to be scanned by the wallet. So, we need
to ensure that no blocks are skipped by the recently
added wallet birth time functionality.

This just means setting the wallet birthtime to the
genesis block time. So the wallet is always older than
any new block.
@furszy furszy force-pushed the 2023_bench_fix_wallet_create_tx branch from 4eb34fd to a72af2e Compare June 17, 2023 00:00
Copy link
Contributor

@hernanmarino hernanmarino left a comment

Choose a reason for hiding this comment

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

ACK a72af2e

@fanquake fanquake requested a review from achow101 June 20, 2023 09:17
Copy link
Contributor

@sedited sedited left a comment

Choose a reason for hiding this comment

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

ACK a72af2e

@achow101
Copy link
Member

ACK a72af2e

@DrahtBot DrahtBot removed the request for review from achow101 June 20, 2023 17:40
@achow101 achow101 merged commit 688c613 into bitcoin:master Jun 20, 2023
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 21, 2023
… wallet_create_tx.cpp

a72af2e bench: disable birth time block skip for wallet_create_tx.cpp (furszy)

Pull request description:

  As the  benchmarks inside `wallet_create_tx.cpp` assert the wallet
  balance at the end, they require all blocks to be scanned by the wallet.
  So, we need to ensure that no blocks are skipped by the recently added
  wallet birth time functionality.

  This just means setting the wallet birth time to the genesis block time.
  So the wallet is always older than any new block.

ACKs for top commit:
  achow101:
    ACK a72af2e
  hernanmarino:
    ACK a72af2e
  TheCharlatan:
    ACK a72af2e

Tree-SHA512: d3148659bd633d20978736e1292e3456a2c6dd2b6c8f60625a4160e16818d923487c889237eb3f34693f7dd78b7d124b89afdc56e4c9fad370026d0733ef1e08
@furszy furszy deleted the 2023_bench_fix_wallet_create_tx branch August 9, 2023 15:39
@bitcoin bitcoin locked and limited conversation to collaborators Aug 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants