TBC Dev
a27d9202e3
Refactor and simplify txpool.sendersBatch ( #195 )
...
* De-dup and extract sendersBatch.getOrCreateId()
* Misc simplify
2021-11-28 10:46:21 +00:00
ledgerwatch
0404744146
Introduce PriceBump, change tx replacement logic, add test ( #192 )
...
* Introduce PriceBump, change tx replacement logic, add test
* Fix TestNonceFromAddress
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-26 13:55:58 +00:00
Alex Sharov
34e6ca3c35
Pool: support multi sentry ( #191 )
...
* save
* save
* save
2021-11-24 17:13:17 +00:00
TBC Dev
d8870b19c3
Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey) ( #183 )
...
* Rename h1 to h0 for clarity
* Simplify toHashes() and toPeerIDs()
* Remove interfaces for replacement
* Squashed 'interfaces/' content from commit ed9b048
git-subtree-dir: interfaces
git-subtree-split: ed9b04802fe8891a2bc3fea274c498c758d3fcac
* Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey)
2021-11-21 19:35:59 +00:00
Alex Sharov
06fb85a0ed
Pool: reject low nonce and low balance txs ( #182 )
...
* save
* save
2021-11-21 14:52:17 +00:00
TBC Dev
5b0c5e7fdb
TxPool efficiency improvements ( #173 )
...
* Avoid iteration for Spammer tests by tracking senderID tx counts
* Add BySenderAndNonce.ascendAll()
* Add BySenderAndNonce.descend()
* Avoid iteration by descending, and pre-allocate known size
* Resize() once rather than for each good txn
* Use range value in loops
* Add comments to clarify NotSet default values
2021-11-18 07:59:25 +00:00
Alex Sharov
5108c95b85
txpool.Pending() method, which preserve ready-for-mining order ( #172 )
2021-11-17 17:23:51 +07:00
Alex Sharov
1b6c2266f5
Pool: PooledTransactions to produce correct rlp for non-legacy txs ( #166 )
2021-11-16 11:21:12 +07:00
ledgerwatch
eefbde1443
Pending nonce [attempt 2] ( #158 )
...
* Remove interfaces for replacement
* Squashed 'interfaces/' content from commit 8f1a238
git-subtree-dir: interfaces
git-subtree-split: 8f1a23897b8921ae3e7f9450ec9f300255c6e1e2
* Regenerate bindings for new interfaces
* Add Nonce function
* Search for nonce in ascending order
* Descend from highest possible nonce for sender (#162 )
* Descend from highest possible nonce for sender
* Remove assumptions from nonce()
* Remove interfaces for replacement
* Squashed 'interfaces/' content from commit 375e3d8
git-subtree-dir: interfaces
git-subtree-split: 375e3d85a3d9ff13e61593a5efacd2fbc777cec3
* Regenerate
* Started test
* More of test
* Fix test
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: TBC Dev <48684072+tbcd@users.noreply.github.com>
2021-11-15 09:44:18 +00:00
Alex Sharov
138a208431
Pool: don't send empty events ( #149 )
2021-11-07 09:45:25 +07:00
Alex Sharov
3c86aa6290
ETL: use logPrefix as suffix of tmp files ( #146 )
2021-11-05 17:04:17 +07:00
Alex Sharov
9d5fa95729
Derive chainid no alloc ( #142 )
2021-11-01 11:17:16 +07:00
Alex Sharov
ce3a3dcfeb
pre-alloc uin256 for chainID derive ( #141 )
2021-11-01 09:42:39 +07:00
Alex Sharov
c92b760e99
make idhash public ( #137 )
2021-10-30 09:55:06 +07:00
alex.sharov
d0b2e02128
clean fuzz of pool
2021-10-29 09:58:52 +07:00
Alex Sharov
5d84a53060
Pool2 integration test support ( #136 )
2021-10-28 18:45:18 +07:00
Alex Sharov
90c6ccb789
Pool: remove rules from func signatures ( #135 )
2021-10-28 10:13:39 +07:00
Alex Sharov
750239d977
more p2p fuzzing, part 2 ( #132 )
2021-10-26 14:29:18 +07:00
alex.sharov
8ab2970ce1
more p2p fuzz
2021-10-26 14:10:42 +07:00
Alex Sharov
9558fb6a12
more p2p fuzzing ( #131 )
2021-10-26 13:52:23 +07:00
alex.sharov
78495d3922
pool docs
2021-10-25 09:48:15 +07:00
Alex Sharov
70c39cd195
Pool intrinsic gas check ( #126 )
2021-10-25 08:49:04 +07:00
alex.sharov
7693a71b4d
mute useless logs
2021-10-24 18:19:52 +07:00
Alex Sharov
505bf97249
save ( #124 )
2021-10-22 09:41:20 +07:00
Alex Sharov
ec0155d4ed
Mdbx v0.11.0 ( #123 )
2021-10-22 09:12:39 +07:00
Alex Sharov
66c9c6f3f7
Pool v2: set 10K as default limit for sub-pool, check key existence before delete ( #122 )
2021-10-21 15:39:28 +07:00
Alex Sharov
12e69ab781
Use default crypto context - because creation of new one failing in Docker on linux host ( #118 )
2021-10-20 09:00:34 +07:00
alex.sharov
0efa6d9a86
fix fuzz test
2021-10-20 07:03:57 +07:00
alex.sharov
c8a357c673
fix nil pointer on error
2021-10-20 06:42:53 +07:00
Alex Sharov
a3431f5663
Propagate all promoted txs when add local tx ( #116 )
2021-10-19 15:19:54 +07:00
Alex Sharov
158ae418d1
Pool: print local txs propagation info ( #115 )
2021-10-18 11:22:05 +07:00
alex.sharov
2031989294
Pool: enable .All method
2021-10-13 09:47:33 +07:00
Alex Sharov
bbcf1f0cff
save ( #106 )
2021-10-10 19:37:10 +07:00
Alex Sharov
7d8355a99a
Pool: sort by nonceDistance inside Red pool ( #105 )
2021-10-10 16:41:32 +07:00
Alex Sharov
ac51da3a55
add lenth package ( #104 )
2021-10-08 09:40:16 +07:00
Alex Sharov
cc20173b74
MDBX: Don't block when open db from another process if main process holds long RW tx ( #99 )
2021-10-05 15:30:06 +07:00
Alex Sharov
fa97bdba0a
Pool v2: --txpool.accountslots flag support ( #98 )
2021-10-03 13:27:28 +07:00
Alex Sharov
57c724bbc6
--txpool.pricelimit support ( #96 )
2021-10-02 17:34:33 +07:00
Alex Sharov
33aa4498f0
Pool: speedup iteration over all txs ( #94 )
2021-09-28 15:54:02 +07:00
alex.sharov
559f376ed4
save
2021-09-27 22:25:13 +07:00
Alex Sharov
ffac34a86f
Pool: break data-dependency between effectiveTip and other fields ( #93 )
2021-09-27 19:45:10 +07:00
Alex Sharov
9070cf769f
save ( #91 )
2021-09-26 19:48:57 +07:00
Alex Sharov
f5fa03d63f
Pool: switch to PendingBaseFee ( #90 )
2021-09-26 19:47:11 +07:00
Alex Sharov
ba2d50bea2
Pool: return err on duplicate rpc ( #88 )
2021-09-22 15:10:17 +07:00
Alex Sharov
4862356290
Pool: correct new pending txs notifications ( #85 )
2021-09-21 16:39:41 +07:00
Alex Sharov
13b0978d86
grpc enable instrumentation ( #84 )
2021-09-21 10:10:59 +07:00
Alex Sharov
c40a022ab0
Pool: return lost error, fix race of 2 sentries, set high limits to see worst case ( #83 )
2021-09-20 20:16:32 +07:00
Alex Sharov
6a7eeccad7
Pool: discard reasons, LRU ( #80 )
2021-09-20 12:44:29 +07:00
Alex Sharov
dfc14352d2
Pool: chain config, non-mainnet ( #78 )
2021-09-18 20:58:20 +07:00
Alex Sharov
8163e0cd93
Pool: cache based on txID ( #75 )
2021-09-17 09:56:04 +07:00