Commit Graph

45 Commits

Author SHA1 Message Date
Alex Sharov
da0666bd83
ErigonLib: move types to own package (#413) 2022-04-11 10:02:44 +07:00
ledgerwatch
fbbcc5f48a
Switch to 512 bit peer ID in gprc bindings (#412)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 8d42c07

git-subtree-dir: interfaces
git-subtree-split: 8d42c078a1d5196a02b26b1397716f44974d1bf7

* Regenerate peerId to be 512 bits

* Fixup

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-04-10 07:14:00 +01:00
Alex Sharov
83951a1d62
Enable more linters (#381) 2022-03-19 11:38:37 +07:00
ledgerwatch
7f6eb71c4c
Split up txpool Broadcast and Announce (#209)
* Split up Broadcast and Announce

* Split up Broadcast and Announce

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-12-16 21:16:04 +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
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
90c6ccb789
Pool: remove rules from func signatures (#135) 2021-10-28 10:13:39 +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
c7739b89a8
Pool: state diff direct client, tx parse fuzzing (#59) 2021-09-07 09:52:17 +07:00
Alex Sharov
38a9bb9d7f
Pool: remove redundant prefix in txs table (#49) 2021-08-31 21:29:55 +07:00
alex.sharov
a6af35fb41 persistence 2021-08-25 18:51:58 +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
8c5c1bdc52 remove statusData from fetch 2021-08-14 15:54:31 +07:00
alex.sharov
a92ee337b9 remove statusData from fetch 2021-08-14 15:53:22 +07:00
alex.sharov
07aad2f286 remove statusData from fetch 2021-08-14 15:47:49 +07:00
alex.sharov
002c671961 remove statusData from fetch 2021-08-14 15:28:05 +07:00
alex.sharov
d491e4c093 add KV 2021-08-11 11:21:36 +07:00
alex.sharov
b15af6c774 test success flow 2021-08-09 14:15:30 +07:00
alex.sharov
fe9a2ef810 test success flow 2021-08-09 14:14:02 +07:00
alex.sharov
5f05c1fcbd test success flow 2021-08-09 14:04:22 +07:00
alex.sharov
585a2ad0a6 mos 2021-08-09 11:00:36 +07:00
alex.sharov
c99c410b4c ParseGetPooledTransactions66 2021-08-03 13:56:46 +07:00
alex.sharov
b3adf70e40 add Pool object, unwind and forward now done by 1 function 2021-08-02 16:34:16 +07:00
alex.sharov
ee1d85bc82 move to log15 2021-07-28 11:50:45 +07:00
alex.sharov
c5fa9ef1bd limit loggerr interface 2021-07-26 10:38:01 +07:00
alex.sharov
b06a46e9cf encode txs 2021-07-26 10:04:53 +07:00
alex.sharov
634953b4c0 encode txs 2021-07-26 09:52:20 +07:00
alex.sharov
334058cf5d encode txs 2021-07-26 09:39:37 +07:00
alex.sharov
3bf11f8ad3 encode txs 2021-07-26 09:33:50 +07:00
alex.sharov
1010156065 encode txs 2021-07-26 09:06:17 +07:00
alex.sharov
ea50561aa5 encode txs 2021-07-26 07:59:41 +07:00
alex.sharov
c55a9f46be encode txs 2021-07-26 07:57:49 +07:00
alex.sharov
f19ae4bfac tx propagate, pool mock, try some tests 2021-07-25 19:19:33 +07:00
Alex Sharp
1ea5eca9fe Encode GetPooledTx66 packet 2021-07-16 19:42:03 +01:00
Alex Sharp
05c5246985 Add EncodeHashes 2021-07-15 20:10:17 +01:00
Alex Sharp
fc3a3b4b37 Fix test 2021-07-14 19:17:20 +01:00
Alexey Sharp
d685fd2715 More test 2021-07-14 17:14:36 +01:00
Alexey Sharp
e058e2c0b8 Reorganise mock sentry as server not client 2021-07-14 07:44:23 +01:00
Alexey Sharp
489f6557c5 Add direct package 2021-07-13 20:02:03 +01:00
Alex Sharp
6e89e434ec Add stream loops 2021-07-12 19:37:35 +01:00
Alexey Sharp
6184884f85 More 2021-07-12 17:55:47 +01:00
Alex Sharp
01030ab042 mock sentry 2021-07-04 23:13:33 +01:00
Alexey Sharp
71afa8871b Add fetch type 2021-07-04 18:24:15 +01:00