Commit Graph

155 Commits

Author SHA1 Message Date
alex.sharov
c6080bfd12 test: add real re-org and p2p txs 2021-08-05 13:42:23 +07:00
alex.sharov
f1bfe6fd85 add onNewTxs method 2021-08-05 10:01:31 +07:00
alex.sharov
e2ddc55c95 add onNewTxs method 2021-08-05 09:48:37 +07:00
alex.sharov
1e8a19ac37 broadcast loop 2021-08-05 09:30:59 +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
35d8cf5525 introduce stateDiff 2021-08-04 13:47:23 +07:00
alex.sharov
3204f70409 pool constructor 2021-08-04 11:53:30 +07:00
alex.sharov
9a9d017866 add localHistory 2021-08-04 11:27:06 +07:00
alex.sharov
20040b6d18 packet test 2021-08-04 10:01:52 +07:00
alex.sharov
d177a32930 packet test 2021-08-04 09:47:56 +07:00
alex.sharov
d2baa38f9c save 2021-08-03 16:55:24 +07:00
alex.sharov
6bdf5c10a4 move mocks to _test.go 2021-08-03 15:28:00 +07:00
alex.sharov
2de26c7e99 move mocks to _test.go 2021-08-03 15:26:29 +07:00
alex.sharov
31b20c1d9c move mocks to _test.go 2021-08-03 15:22:43 +07:00
alex.sharov
5feac559ab move mocks to _test.go 2021-08-03 14:50:46 +07:00
alex.sharov
4bbf980a4e move mocks to _test.go 2021-08-03 14:50:10 +07:00
alex.sharov
2cdedca2ef move mocks to _test.go 2021-08-03 14:49:25 +07:00
alex.sharov
829971377b encode p2p response for getPooledTxs 2021-08-03 14:35:45 +07:00
alex.sharov
5dc81ce263 clean 2021-08-03 14:00:15 +07:00
alex.sharov
c99c410b4c ParseGetPooledTransactions66 2021-08-03 13:56:46 +07:00
alex.sharov
7844b746f3 more test cases 2021-08-02 18:53:28 +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
630f692051 run 2021-08-01 17:07:17 +07:00
alex.sharov
52fc8df02a run 2021-08-01 11:44:40 +07:00
alex.sharov
6a4bc96c5a run 2021-08-01 11:41:34 +07:00
alex.sharov
54b4e1b034 complexify test 2021-08-01 10:01:55 +07:00
alex.sharov
66562a13c2 complexify test 2021-07-31 18:21:56 +07:00
alex.sharov
c72bed2450 complexify test 2021-07-31 17:20:46 +07:00
alex.sharov
1ea6899cd9 complexify test 2021-07-31 16:29:29 +07:00
alex.sharov
0fb7137cb9 extract sender from txSlot 2021-07-31 15:35:36 +07:00
alex.sharov
574b3fe89d extract sender from txSlot 2021-07-31 15:10:42 +07:00
alex.sharov
a2a7db3bd8 basic forward/unwind funcs 2021-07-31 12:43:29 +07:00
alex.sharov
64759453b1 basic forward/unwind funcs 2021-07-31 12:41:57 +07:00
alex.sharov
6e5883940e add nonce and sender 2021-07-30 21:52:23 +07:00
alex.sharov
7947721ce4 fix queues 2021-07-30 16:31:45 +07:00
alex.sharov
62b69505fa fix queues 2021-07-30 16:26:56 +07:00
alex.sharov
fb12513c08 fix queues 2021-07-30 16:24:20 +07:00
alex.sharov
bf1f384df2 fix queues 2021-07-30 14:10:58 +07:00
alex.sharov
e4545fe627 fix queues 2021-07-30 11:25:29 +07:00
alex.sharov
4916d21cd3 fix queues 2021-07-30 11:22:27 +07:00
alex.sharov
d2ae997f37 fuzz pool 2021-07-30 10:34:13 +07:00
alex.sharov
04ed6f7f70 fuzz pool 2021-07-30 10:28:03 +07:00
alex.sharov
5c5a10b20c fuzz example 2021-07-29 15:50:23 +07:00
alex.sharov
10dccfe0c5 fuzz example 2021-07-29 15:48:23 +07:00
alex.sharov
77c876b46f fuzz example 2021-07-29 15:45:45 +07:00
alex.sharov
99083578db fuzz example 2021-07-29 15:33:22 +07:00
alex.sharov
053b99e716 fuzz example 2021-07-29 15:23:39 +07:00
alex.sharov
8ca2c0cef4 fuzz example 2021-07-29 15:23:17 +07:00
alex.sharov
284ac68930 initial implementation 2021-07-29 15:05:20 +07:00
Alex Sharov
22df7a3fb9
Merge pull request #7 from ledgerwatch/log_log15 2021-07-28 13:31:57 +07:00
alex.sharov
ee1d85bc82 move to log15 2021-07-28 11:50:45 +07:00
alex.sharov
242cb412f7 add fuzz example 2021-07-28 11:02:25 +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
283fc426eb add StringOfLen method 2021-07-27 13:06:38 +07:00
alex.sharov
f21c9e9ab2 save 2021-07-27 12:49:03 +07:00
alex.sharov
f6d9c5cc00 move "list/non-list" check inside ParseListPrefix and ParseStringPrefix funcs 2021-07-27 12:44:45 +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
7d2a8c7e85 limit loggerr interface 2021-07-26 11:57:04 +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
Alexey Sharp
adcc17baf7 More encoding 2021-07-16 17:00:51 +01:00
Alex Sharp
4f5a63f726 More 2021-07-16 14:29:21 +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
Alexey Sharp
d98e6200c6 Error prefix constant 2021-07-15 12:00:14 +01:00
Alexey Sharp
ce38bf7b6f Add packet test 2021-07-15 11:25:20 +01:00
Alex Sharp
a8eec03b7a Introduce ParseHash 2021-07-15 09:52:28 +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
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
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
Alexey Sharp
71afa8871b Add fetch type 2021-07-04 18:24:15 +01:00
Alexey Sharp
03bb821ed9 Fix lint 2021-06-30 13:34:27 +01:00
Alex Sharp
b71c118e17 Use zero-allocation sender recovery 2021-06-26 12:55:32 +01:00
Alex Sharp
83087332a6 More tests and check for sighash 2021-06-26 11:18:39 +01:00
Alex Sharp
eb6bb24d71 Added senders to the tests, introduce context and sighash 2021-06-25 00:16:36 +01:00
Alex Sharp
8b09b1c82c More tests with tx hashes 2021-06-24 17:55:38 +01:00