Skip to content

Bugfix: PrioritiseTransaction updates the mempool tx counter - #10196

Merged
sipa merged 2 commits into
bitcoin:masterfrom
sdaftuar:2017-04-prioritise-transaction
May 17, 2017
Merged

sipa merged 2 commits into
bitcoin:masterfrom
sdaftuar:2017-04-prioritise-transaction

Conversation

@sdaftuar

Copy link
Copy Markdown
Member

The mempool's nTransactionsUpdated is used by getblocktemplate
to trigger new invocations of CreateNewBlock().

@TheBlueMatt

Copy link
Copy Markdown
Contributor

utACK 909306cde3770ed7019e7b635e24cedbd9de66ce

@gmaxwell gmaxwell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

utACK.

@sipa

sipa commented Apr 17, 2017

Copy link
Copy Markdown
Member

Test for this?

@sdaftuar

Copy link
Copy Markdown
Member Author

@sipa Test added in 6a61424c9eed072ae8d79d68aac71f525c1608b5

@luke-jr

luke-jr commented Apr 19, 2017

Copy link
Copy Markdown
Contributor

utACK, good catch

luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Apr 21, 2017
The mempool's nTransactionsUpdated is used by getblocktemplate
to trigger new invocations of CreateNewBlock().

Github-Pull: bitcoin#10196
Rebased-From: 909306cde3770ed7019e7b635e24cedbd9de66ce
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Apr 21, 2017
Github-Pull: bitcoin#10196
Rebased-From: 6a61424c9eed072ae8d79d68aac71f525c1608b5
sdaftuar added 2 commits May 6, 2017 05:27
The mempool's nTransactionsUpdated is used by getblocktemplate
to trigger new invocations of CreateNewBlock().
@sdaftuar
sdaftuar force-pushed the 2017-04-prioritise-transaction branch from 6a61424 to 6c2e25c Compare May 6, 2017 09:32
@sdaftuar

sdaftuar commented May 6, 2017

Copy link
Copy Markdown
Member Author

Rebased (due to conflict in the test)

@sdaftuar

Copy link
Copy Markdown
Member Author

Anything else needed here?

assert_equal(self.nodes[0].sendrawtransaction(tx_hex), tx_id)
assert(tx_id in self.nodes[0].getrawmempool())

# Test that calling prioritisetransaction is sufficient to trigger

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: What about some self.log.info call here?

self.log.info("Assert that prioritising transaction changes the block template")

@paveljanik

Copy link
Copy Markdown
Contributor

tested ACK 6c2e25c

Test fails on master, so OK.

@sipa

sipa commented May 17, 2017

Copy link
Copy Markdown
Member

utACK 6c2e25c

@sipa
sipa merged commit 6c2e25c into bitcoin:master May 17, 2017
sipa added a commit that referenced this pull request May 17, 2017
…unter

6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941
luke-jr added a commit to luke-jr/bitcoin that referenced this pull request Jun 5, 2017
codablock pushed a commit to codablock/dash that referenced this pull request Jan 26, 2018
…l tx counter

6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 5, 2019
Github-Pull: bitcoin#10196
Rebased-From: 6a61424c9eed072ae8d79d68aac71f525c1608b5
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
…l tx counter

6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 27, 2019
…l tx counter

6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jun 28, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
jtoomim pushed a commit to jtoomim/bitcoin-abc that referenced this pull request Jun 29, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
jonspock pushed a commit to jonspock/devault that referenced this pull request Jul 5, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
jonspock pushed a commit to jonspock/devault that referenced this pull request Jul 5, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
jonspock pushed a commit to jonspock/devault that referenced this pull request Jul 6, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
jonspock pushed a commit to jonspock/devault that referenced this pull request Jul 7, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
jonspock pushed a commit to jonspock/devault that referenced this pull request Jul 7, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
proteanx pushed a commit to devaultcrypto/devault-legacy that referenced this pull request Jul 7, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
jonspock pushed a commit to devaultcrypto/devault-legacy that referenced this pull request Jul 9, 2019
…unter

Summary:
6c2e25c [qa] Test prioritise_transaction / getblocktemplate interaction (Suhas Daftuar)
acc2e4b Bugfix: PrioritiseTransaction updates the mempool tx counter (Suhas Daftuar)

Tree-SHA512: dcf834df52d84d5eb86acb847c3f28d3cffd1f78f3092b8ff8913c2c400675a071c48a19cd852fdbaac1582aa1dba23433e0e16055831ef2a5e76dde91199941

Backport of Core PR10196
bitcoin/bitcoin#10196

Test Plan:
  make check
  test_runner.py

Reviewers: deadalnix, jasonbcox, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: deadalnix, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D3386
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
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.

8 participants