Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Mine txs in same block with provided sorting #899

Open
vekexasia opened this issue Apr 27, 2021 · 1 comment
Open

Mine txs in same block with provided sorting #899

vekexasia opened this issue Apr 27, 2021 · 1 comment

Comments

@vekexasia
Copy link

Hello, I'd like to mine several unrelated transactions in the same block using the order I added them to the pool.

Currently ganache mines them in the same block by picking them using an heap with gasprice in mind. But if I send this in order:

  • tx1 gasPrice 1
  • tx2 gaSprice 3
  • tx3 gasPrice 2

I end up wiht a block mined with the tx in the following orger [tx2,tx3,tx1] (assuming the txs are not from the same account. Is it possible for me to pluck in my tx picking strategy?

@vekexasia vekexasia changed the title Mine txs in same block as provided Mine txs in same block with provided sorting Apr 27, 2021
@davidmurdoch davidmurdoch added this to the 7.1.0 milestone Apr 28, 2021
@davidmurdoch
Copy link
Member

Love this idea!

We could add a new option miner.order: "fifo" | "gasPrice", or something like that, so we can make room for other sorting plans in the future. Thoughts?

I'll add this to our roadmap!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Backlog
Development

No branches or pull requests

2 participants