Commit Graph

17 Commits

Author SHA1 Message Date
Alex Sharov
83951a1d62
Enable more linters (#381) 2022-03-19 11:38:37 +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
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
e73692c327 up interfaces 2021-08-14 08:49:21 +07:00
alex.sharov
2cdedca2ef move mocks to _test.go 2021-08-03 14:49:25 +07:00
alex.sharov
b06a46e9cf encode txs 2021-07-26 10:04:53 +07:00
alex.sharov
1010156065 encode txs 2021-07-26 09:06:17 +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
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
Alex Sharp
248e91db43 Fixes 2021-07-13 22:18:50 +01:00
Alexey Sharp
489f6557c5 Add direct package 2021-07-13 20:02:03 +01:00
Alexey Sharp
4f953b29dc Fix sentry mock 2021-07-12 14:18:24 +01:00
Alex Sharp
01030ab042 mock sentry 2021-07-04 23:13:33 +01:00