Commit Graph

72 Commits

Author SHA1 Message Date
Alexandr Borodulin
ac4119191d
Encoding StarknetTx salt parameter (#243)
Co-authored-by: Aleksandr Borodulin <a.borodulin@axioma.lv>
2022-01-17 13:47:16 +01:00
Alexandr Borodulin
fa6c709fcd
Encoding StarknetTx salt parameter (#240)
Co-authored-by: Aleksandr Borodulin <a.borodulin@axioma.lv>
2022-01-17 10:54:29 +01:00
ledgerwatch
b95cff2ce3
No empty RLPs in TxPacket messages, consistent parsing of TxPacket and PooledTxPacket (#232)
* Not include empty RLPs into TransactionPacket messages

* Consistent parsing of TransactionPacket and PooledTransactionPacket

* The other way around

* Cleaner form

* Add test for encoding and parsing TransctionsPacket

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-01-15 09:09:33 +00:00
Alex Sharov
d4faf5beee
Rlp base err2 (#221) 2022-01-05 17:59:26 +07:00
ledgerwatch
7f82ddaa75
txpool broadcasting (#208)
* txpool broadcasting

* Fix lint

* Broadcast transaction to random peers

* Fix broadcast

* Fix panic

* Change terminology

* fix for broadcasting

* Rebroadcast transactions promoted to pending subpool

* Trace moving between subpools

* Deduplicate promoted hashes, fix basefee promotion

* Tx propagation to be more resilient

* Fix dedup

* Change collection of promoted hashes

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-12-16 20:58:40 +00:00
ledgerwatch
c7cd5d65d3
Introduce transaction tracing in tx pool (#205)
* Introduce transaction tracing in tx pool

* Add tracing prints

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-12-14 09:40:07 +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
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
9558fb6a12
more p2p fuzzing (#131) 2021-10-26 13:52:23 +07:00
Alex Sharov
70c39cd195
Pool intrinsic gas check (#126) 2021-10-25 08:49:04 +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
158ae418d1
Pool: print local txs propagation info (#115) 2021-10-18 11:22:05 +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
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
Alex Sharov
71308b02b3
Pool: switch cache to tx.ID(), more metrics (#73) 2021-09-15 20:15:32 +07:00
Alex Sharov
5b8e019246
Pool: add coherent state cache (#68) 2021-09-13 14:31:15 +07:00
Alex Sharov
c7739b89a8
Pool: state diff direct client, tx parse fuzzing (#59) 2021-09-07 09:52:17 +07:00
Alex Sharov
ad0e5db3ef
Pool: pending best queue as an array, batch p2p new txs processing (#51) 2021-09-01 15:22:48 +07:00
alex.sharov
afdb0c7598 add state check assert routine 2021-08-27 11:22:24 +07:00
alex.sharov
33c60ecea8 persistence 2021-08-23 20:20:07 +07:00
alex.sharov
5f3c7beca3 persistence 2021-08-23 20:03:09 +07:00
alex.sharov
8133abfd56 persistence 2021-08-23 16:13:06 +07:00
alex.sharov
224d851465 Changes 2021-08-23 14:16:39 +07:00
alex.sharov
1eab615b8d persistence 2021-08-23 10:17:26 +07:00
alex.sharov
c233bcb2e6 persistence 2021-08-22 17:29:39 +07:00
alex.sharov
d3f68af522 persistence 2021-08-22 17:06:38 +07:00
alex.sharov
0d2b0c494f dbg 2021-08-20 16:17:34 +07:00
alex.sharov
2dba918888 subscribe to state changes 2021-08-09 09:46:10 +07:00
alex.sharov
f7df1f6ca4 subscribe to state changes 2021-08-09 09:43:15 +07:00
alex.sharov
be60073e1b handle PooledTransactionsPackage 2021-08-08 19:18:50 +07:00
alex.sharov
e1ed833b0d parse 2021-08-07 20:26:41 +07:00
alex.sharov
cf43882226 parse 2021-08-07 20:19:24 +07:00
alex.sharov
a892707c19 parse p2p pkg 2021-08-07 17:38:27 +07:00
alex.sharov
3f660970ce parse p2p pkg 2021-08-07 16:12:04 +07:00
alex.sharov
b88f70de0e reject too large transactions 2021-08-07 14:05:02 +07:00
alex.sharov
aef904971c validate TxSlots 2021-08-05 16:45:58 +07:00
alex.sharov
7616ab3cde addresses type 2021-08-05 16:35:29 +07:00
alex.sharov
b178ce65e6 test: add real re-org and p2p txs 2021-08-05 15:30:42 +07:00
alex.sharov
e2ddc55c95 add onNewTxs method 2021-08-05 09:48:37 +07:00
alex.sharov
d7a911dd0f broadcast loop 2021-08-05 09:00:00 +07:00
alex.sharov
729fb20d98 columnize senders 2021-08-04 15:34:10 +07:00
alex.sharov
d2baa38f9c save 2021-08-03 16:55:24 +07:00
alex.sharov
b3adf70e40 add Pool object, unwind and forward now done by 1 function 2021-08-02 16:34:16 +07:00