ledgerwatch
1d4022960a
Fix RLP inconsistency in txpool ( #280 )
...
* Fix RLP inconsistency in txpool
* Add debug
* hasEnvelope argument when parsing transaction
* Handle incorrect packets without panic
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-01-26 16:09:02 +00: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
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
Alex Sharov
1b6c2266f5
Pool: PooledTransactions to produce correct rlp for non-legacy txs ( #166 )
2021-11-16 11:21:12 +07:00
Alex Sharov
750239d977
more p2p fuzzing, part 2 ( #132 )
2021-10-26 14:29:18 +07:00
Alex Sharov
ac51da3a55
add lenth package ( #104 )
2021-10-08 09:40:16 +07:00
Alex Sharov
dfc14352d2
Pool: chain config, non-mainnet ( #78 )
2021-09-18 20:58:20 +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
e866d47c1b
s
2021-08-28 16:54:23 +07:00
alex.sharov
afdb0c7598
add state check assert routine
2021-08-27 11:22:24 +07:00
alex.sharov
536b4bcef8
add state check assert routine
2021-08-27 11:11:46 +07:00
alex.sharov
57e84d56c3
add state check assert routine
2021-08-27 11:02:56 +07:00
alex.sharov
b8381cfd3a
add state check assert routine
2021-08-27 11:00:56 +07:00
alex.sharov
256dfd818a
save
2021-08-21 15:08:03 +07:00
alex.sharov
0d2b0c494f
dbg
2021-08-20 16:17:34 +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
d177a32930
packet test
2021-08-04 09:47:56 +07:00
alex.sharov
2de26c7e99
move mocks to _test.go
2021-08-03 15:26:29 +07:00
alex.sharov
5feac559ab
move mocks to _test.go
2021-08-03 14:50:46 +07:00
alex.sharov
829971377b
encode p2p response for getPooledTxs
2021-08-03 14:35:45 +07:00
alex.sharov
c99c410b4c
ParseGetPooledTransactions66
2021-08-03 13:56:46 +07:00
alex.sharov
a072b22e4c
move mdbx and kv
2021-07-28 10:39:28 +07:00
alex.sharov
be5eb6522d
save
2021-07-27 17:07:10 +07:00
alex.sharov
b3b2ebddc1
save
2021-07-27 16:44:47 +07:00
alex.sharov
636beaf0e8
save
2021-07-27 15:47:33 +07:00
alex.sharov
1242270756
move "unexpected end of payload" check inside ParsePrefix func
2021-07-27 12:33:38 +07:00
alex.sharov
8df5bc8c50
save
2021-07-27 12:18:40 +07:00
alex.sharov
c13962ed75
extract ensureEnoughSize func
2021-07-27 12:03:59 +07:00
alex.sharov
fabf9b7b1d
save
2021-07-27 10:13:50 +07:00
alex.sharov
347f52f6b8
save
2021-07-26 20:39:30 +07:00
alex.sharov
585475978e
save
2021-07-26 19:13:07 +07:00
alex.sharov
c55a9f46be
encode txs
2021-07-26 07:57:49 +07:00
Alex Sharp
1ea5eca9fe
Encode GetPooledTx66 packet
2021-07-16 19:42:03 +01:00
Alexey Sharp
adcc17baf7
More encoding
2021-07-16 17:00:51 +01:00
Alex Sharp
05c5246985
Add EncodeHashes
2021-07-15 20:10:17 +01:00
Alexey Sharp
d5e11f3b2e
Encode hashes
2021-07-15 15:48:55 +01:00
Alexey Sharp
0393f29197
Add parse hashes
2021-07-15 12:23:17 +01:00
Alex Sharp
a8eec03b7a
Introduce ParseHash
2021-07-15 09:52:28 +01:00