Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Get blockhash every batch and don't wait for tx threads #3994

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

jackcmay
Copy link
Contributor

Problem

As bench-tps does bench-exchange waits for the transaction transfer threads to finish before generating new transactions. This is unnecessary and just slows down the creation of new transactions for no reason. Transaction generation is already throttled by the trade_delay knob.

Also, an earlier optimization has turned out to cause blockhash errors. When signing transactions new blockhashes were only obtained every x seconds (was 60, then 30). The bench is loading the network so much that there is a large lag in transactions and blockhashes were expiring.

Summary of Changes

  • Remove wait for transfer threads
  • Remove blockhash optimizations

Fixes #3979

@jackcmay jackcmay merged commit a9e6345 into solana-labs:master Apr 25, 2019
@jackcmay jackcmay deleted the cut-fat branch April 25, 2019 18:22
brooksprumo pushed a commit to brooksprumo/solana that referenced this pull request Dec 11, 2024
jstarry added a commit to jstarry/solana that referenced this pull request Jan 6, 2025
jstarry added a commit to jstarry/solana that referenced this pull request Jan 6, 2025
t-nelson pushed a commit to t-nelson/solana that referenced this pull request Jan 11, 2025
… and solana-labs#3994) (solana-labs#4297)

* feat: deplete compute meter for vm errors (solana-labs#3751)

* feat: deplete compute meter for vm errors

* add tests

* rekey apply_cost_tracker_during_replay

(cherry picked from commit b120fc1)

* fix Cargo.lock

* fix test

* cargo lock

* fix test

* v2.1: feat: deplete compute meter for vm errors (backport of solana-labs#3751)

* cargo.lock

---------

Co-authored-by: Brennan <brennan.watt@anza.xyz>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bench-exchange waits too long for transaction send and should retrieve blockhashes more often
1 participant