Commit Graph

60 Commits

Author SHA1 Message Date
Alex Sharov
625c9f5385
Typed sender (#435)
* save

* Squashed 'interfaces/' content from commit 477d121a

git-subtree-dir: interfaces
git-subtree-split: 477d121aafa9566e1f2f7d478852d800d3822bc5

* save
2022-04-28 15:35:08 +07:00
Alex Sharov
ef2df83bfb
rename field "type" (#434)
* save

* Squashed 'interfaces/' content from commit 9fdbffd

git-subtree-dir: interfaces
git-subtree-split: 9fdbffd8ff5cc8d1061939e9f6dc2e966ba5b284

* save

* save

* save

* save
2022-04-28 15:11:28 +07:00
Alex Sharov
14f53eefaf
Downloader: calc stat inside, add --torrent.download.slots and limit downloads inside (#432)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit cb09f4f

git-subtree-dir: interfaces
git-subtree-split: cb09f4fd4eb9caccf7ece5b5ba05b380a4ce9e33

* save

* save

* Squashed 'interfaces/' content from commit f4847ba

git-subtree-dir: interfaces
git-subtree-split: f4847baccf2c5e35e955f14cbee428f90111dfbf

* save

* save

* Squashed 'interfaces/' content from commit 17196d5

git-subtree-dir: interfaces
git-subtree-split: 17196d54cff8233b1c0c5eadc2f806ac260c2e9d

* save
2022-04-28 09:08:26 +07:00
battlmonstr
5dc5ab7fe1
RPC/Sentry: Peers method (#429)
* interfaces: Peers method in RPC/Sentry

* RPC/Sentry: Peers method

Wrappers and mocks.
GRPC regenerated.
See https://github.com/ledgerwatch/interfaces/pull/102
2022-04-25 19:54:05 +07:00
battlmonstr
c3b4804092
Sentry GRPC: rename Peers to PeerEvents (#427)
* sentry.proto: rename Peers to PeerEvents

* rename Peers() -> PeerEvents()
* rename PeersRequest -> PeerEventsRequest
* rename PeerEvent -> PeerEventId
* rename PeersReply -> PeerEvent

* Sentry GRPC: rename Peers to PeerEvents
2022-04-23 15:43:24 +01:00
Alex Sharov
5f1c2e9011
Torrent peers stat (#424)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 27a7c33

git-subtree-dir: interfaces
git-subtree-split: 27a7c33025b5736ad4ba2b4112634b61d28a26ad

* save
2022-04-22 17:49:38 +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
338fe7895a
grpc up (#411) 2022-04-07 11:29:32 +07:00
Alex Sharov
1b0bcd89fa
snapshots: grpc event (#377) 2022-03-18 14:47:39 +07:00
Giulio rebuffo
9b99057af4
fixed bug for h2048 (#367) 2022-03-16 09:59:25 +07:00
ledgerwatch
d3e05fb352
Subscriptions for logs (#279)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 4b4b765

git-subtree-dir: interfaces
git-subtree-split: 4b4b76598f956abcdeae67c50b7c37f055d11b17

* Regenerate bindings

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit a0b1e1c

git-subtree-dir: interfaces
git-subtree-split: a0b1e1cdbce09fd62c369f25e8ef35cf3972357e

* Rebuild gointerfaces

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit eea9297

git-subtree-dir: interfaces
git-subtree-split: eea92977065e217c385db8eefe261671fb72c529

* Update to new interfaces

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 548970d

git-subtree-dir: interfaces
git-subtree-split: 548970d40b288ed7ef80412e5fdb1144c8ffe129

* Update to gointerfaces

* Update pb

* Add subslogs

* Upd pb

* Add direct for logs

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Andrey Rybnov <ryban92@gmail.com>
2022-03-11 16:33:47 +00:00
Giulio rebuffo
2fc62cd2f5
prevrandao (#349) 2022-02-24 16:18:01 +01:00
Alex Sharov
7747be5228
more stable grpc err check (#336) 2022-02-18 09:54:27 +07:00
Alex Sharov
5be29adf1a
Grpc err utils (#334)
* save

* save
2022-02-18 09:40:11 +07:00
Andrew Ashikhmin
2e162c70ba
Update Merge Engine API (Kiln v1) (#268)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 2daa726

git-subtree-dir: interfaces
git-subtree-split: 2daa72683ceaacfe0476005c11a6fc7b6d945780

* Update Merge Engine API

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 0e25bcc

git-subtree-dir: interfaces
git-subtree-split: 0e25bcc642c90fcc63e12930032a7e0f2260e865

* Engine API updated

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit ee8057d

git-subtree-dir: interfaces
git-subtree-split: ee8057d3e8ab57059fac55434f3f55d189b00242

* Add INVALID_TERMINAL_BLOCK to EngineStatus

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 50ece30

git-subtree-dir: interfaces
git-subtree-split: 50ece307faac31b7d7fe9cd06e11ed82c09064b9
2022-02-09 07:49:31 +01:00
alex.sharov
d4b9053aed save 2022-02-04 11:20:02 +07:00
ledgerwatch
df95313a31
Add blockGasLimit to the state stream (#261)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit eff9f8f

git-subtree-dir: interfaces
git-subtree-split: eff9f8f7273dda7c78575f2474e3103da61825db

* Add blockGasLimit to the state stream

* Pass blockGasLimit into txpool

* Add NotTooMuchGas bit, refactored promote

* Replace effectiveTip with minTip in the queues and slices

* Fix lint

* Refactor

* Improve terminology of ordering function

* Optimise baseFee change

* cleanup

* Safe operations

* Fix UnsafeAdd

* also print pendingBaseFee

* trace txpool_content

* trace txpool_content

* user sender ID inverted index to speed up txpool_content

* copy rlp from Db

* remove debug printing

* change from string to []byte

* safe storage of sender in the map

* Fix compile

* safe storage of sender in the map

* Print errors

* Prints

* Prints

* Prints

* Change worst function

* Change worst function

* Change worst function

* Change worst function

* Fix minTip

* Fix minTip

* Warn on db error, but not stop

* Fix interface

* More prints

* Cleanup

* Cleanup

* Differentiate baseFee pool

* Bump version of remove KV interface

* Not print every block

* Not print every block

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-01-25 10:20:11 +00:00
e-danko
43105470fd
added starknet gointerfaces (#259) 2022-01-20 14:11:08 +00:00
Alex Sharov
71c8187a64
Snapshot: Txn lookup (#224) 2022-01-07 17:14:21 +07:00
Giulio rebuffo
bd5e7706f0
ran make (#218) 2021-12-28 01:50:12 +01:00
Giulio rebuffo
910ae8eec6
updated to latest merge spec (#217)
* updated to latest merge spec

* now

* gointerfaces

* done

* better naming

* corrected extra data

* corrected extra data

* correct order

* again, correct order
2021-12-27 18:59:32 +01:00
Alex Sharov
bb6dfef7c8
add downloader.proto (#206)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit be07fc9

git-subtree-dir: interfaces
git-subtree-split: be07fc99183a7cef1ca08961033bdb917d85d9b5

* save

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit be07fc9

git-subtree-dir: interfaces
git-subtree-split: be07fc99183a7cef1ca08961033bdb917d85d9b5

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 23d68fd

git-subtree-dir: interfaces
git-subtree-split: 23d68fda86c3a2c322e7b430c817b06b6f6ca311

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 500dde8

git-subtree-dir: interfaces
git-subtree-split: 500dde8293c0a12d19d94b5ff633722a03d7fc4e

* save

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit e5b1945

git-subtree-dir: interfaces
git-subtree-split: e5b1945d02da7a7f00e2289034ee90a6edd60184

* save

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit f36d878

git-subtree-dir: interfaces
git-subtree-split: f36d878080fe018a41fb903f81fc8f8ac9981cbd

* save

* save

* save
2021-12-14 13:33:32 +00:00
Dmitry Savelev
da3c239ed6
Add nodeInfo GRPC methods (#196)
* Add nodeInfo

* Remove interfaces for replacement

Signed-off-by: Dmitry Savelev <darksawa@gmail.com>

* Squashed 'interfaces/' content from commit 67abfdd

git-subtree-dir: interfaces
git-subtree-split: 67abfdd23b3bbef0d2f0c038275b6f47820d7f5e
2021-11-30 14:41:31 +00:00
Giulio rebuffo
4258567eb7
added util to convert to H2048 interface (#188)
* added util to convert to H2048 interface

* plain bytes

* lint
2021-11-25 05:18:17 +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
Giulio rebuffo
8a7f4ca4e9
Update interfaces (#179)
* Added CurrentExecutionPayload Bucked

* lint

* updated

* added util to decode blooms
2021-11-21 14:52:08 +00:00
Alex Sharov
5108c95b85
txpool.Pending() method, which preserve ready-for-mining order (#172) 2021-11-17 17:23:51 +07:00
ledgerwatch
eefbde1443
Pending nonce [attempt 2] (#158)
* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 8f1a238

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

* Regenerate bindings for new interfaces

* Add Nonce function

* Search for nonce in ascending order

* Descend from highest possible nonce for sender (#162)

* Descend from highest possible nonce for sender

* Remove assumptions from nonce()

* Remove interfaces for replacement

* Squashed 'interfaces/' content from commit 375e3d8

git-subtree-dir: interfaces
git-subtree-split: 375e3d85a3d9ff13e61593a5efacd2fbc777cec3

* Regenerate

* Started test

* More of test

* Fix test

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: TBC Dev <48684072+tbcd@users.noreply.github.com>
2021-11-15 09:44:18 +00:00
Alex Sharov
acc584c097
grpc GetBlock api (#159) 2021-11-14 11:08:45 +07:00
Alex Sharov
3fb38f2547
increase grpc meassage limit (#143) 2021-11-02 22:01:19 +07:00
Alex Sharov
57c724bbc6
--txpool.pricelimit support (#96) 2021-10-02 17:34:33 +07:00
Alex Sharov
f5fa03d63f
Pool: switch to PendingBaseFee (#90) 2021-09-26 19:47:11 +07:00
Alex Sharov
4862356290
Pool: correct new pending txs notifications (#85) 2021-09-21 16:39:41 +07:00
Alex Sharov
13b0978d86
grpc enable instrumentation (#84) 2021-09-21 10:10:59 +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
aa7acc120c
Pool: expose mdbx's txID to remote_kv (#71) 2021-09-15 13:11:34 +07:00
Alex Sharov
5b8e019246
Pool: add coherent state cache (#68) 2021-09-13 14:31:15 +07:00
Alex Sharov
0b4e528fac
Pool: no state persistance (#62) 2021-09-08 19:21:13 +07:00
Alex Sharov
c7739b89a8
Pool: state diff direct client, tx parse fuzzing (#59) 2021-09-07 09:52:17 +07:00
Alex Sharov
affb189c77
Pool: add --txpool.v2 flag to rpcdaemon (#57)
* grpc connect func

* grpc connect func

* grpc connect func

* grpc connect func

* grpc connect func

* grpc connect func
2021-09-03 10:24:49 +07:00
Alex Sharov
c935d9ff65
Pool: add grpcutils pkg, no spamming logs on disconnect (#54) 2021-09-02 16:37:36 +07:00
Alex Sharov
71fb498e39
Pool: add grpc server (#53) 2021-09-02 12:25:34 +07:00
alex.sharov
c16fcc3a8d save 2021-08-16 08:58:58 +07:00
alex.sharov
e73692c327 up interfaces 2021-08-14 08:49:21 +07:00
alex.sharov
4bf6b1b29b Merge branch 'main' into pool11 2021-08-10 09:20:14 +07:00
ledgerwatch
9168ac5e1a
Update type_utils.go 2021-08-09 10:10:51 +01:00
alex.sharov
5f05c1fcbd test success flow 2021-08-09 14:04:22 +07:00