e-danko
7d338f5e1c
#2660 : added Kovan network ( #2733 )
2021-09-27 19:56:17 +07:00
Alex Sharov
400c71b7ce
Pool: txID-based cache ( #2697 )
2021-09-17 10:31:20 +07:00
Alex Sharov
76dd448c70
Pool: switch cache to tx.ID(), add blockNum to tx info to drop from full pool old txs first ( #2688 )
2021-09-15 19:34:05 +07:00
Alex Sharov
a3cd1d3df4
fix sentry forks slice race ( #2676 )
2021-09-13 13:54:12 +07:00
Alex Sharov
d7c929411b
fix sentry discover race ( #2675 )
2021-09-13 13:39:48 +07:00
Eugene
4bd8721d49
sentry/download: ( #2672 )
...
*Use atomics for `PeerInfo.Height()` and `PeerInfo.SetHeight(uint64)`
2021-09-12 17:51:15 +07:00
ledgerwatch
15b4095718
Move ETL to erigon-lib ( #2667 )
...
* Move ETL to erigon-lib
* Update link in the readme
* go mod tidy
* Use common/chan.go from erigon-lib
* Clean up
* Fix lint
* Fix test
* Fix compilation
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-09-12 08:50:17 +01:00
Alex Sharov
b5a6046fc3
sentry peerInfo race ( #2666 )
2021-09-11 16:12:03 +01:00
Alex Sharov
4c1dbdf50e
Pool: add --txpool.v2 flag to erigon (it just disabling existing machinery for now) ( #2620 )
2021-09-02 17:04:30 +07:00
Zachinquarantine
5e713d6da6
Remove calaveras testnet ( #2600 )
...
* Remove calaveras
* Remove Calaveras testnet
2021-09-01 08:16:30 +07:00
Alex Sharov
caa1122dd3
consuming is slow ( #2580 )
2021-08-25 09:07:50 +07:00
Alex Sharov
289e434b87
Pool: senders cache object, reject known tx before senders recover, fix lock contention ( #2562 )
...
* save
* save
2021-08-21 08:25:42 +07:00
Alex Sharov
abd2e2de2e
Sentry: clients can't slow down each-other, dedicated stream for sending headers ( #2558 )
2021-08-20 19:48:18 +07:00
Alex Sharov
6c7edb0d34
state diff send to txpool ( #2532 )
2021-08-17 15:52:55 +07:00
Alex Sharov
5278ef4224
experimental: txpool cmd ( #2530 )
...
* save
* sentry handshake
* move sentry clients to erigon-lib
* move sentry clients to erigon-lib
* move sentry clients to erigon-lib
* move sentry clients to erigon-lib
* correct grpc retry
* correct grpc retry
* correct grpc retry
* save
* save
* save
* save
2021-08-14 20:47:11 +07:00
Alex Sharov
98e60b5b4b
Separate handshake from set_status - because txpool can't set any sentry status but need to handshake ( #2529 )
...
* sentry handshake
* move sentry clients to erigon-lib
* correct grpc retry
* correct grpc retry
* correct grpc retry
2021-08-14 15:11:46 +07:00
ledgerwatch
1135e2b4fb
[sentry] Enforce max protocol version as well as min protocol version ( #2525 )
...
* Print data
* E
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-08-13 16:51:18 +01:00
ledgerwatch
65a9a265c2
Prevent frequent commits to the node DB in sentries ( #2505 )
...
* Prevent frequent commits to the node DB in sentries
* Commit when btree goes over limit
* iterator for SeedQuery
* Fixing test
* Fix tests
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-08-09 09:52:42 +01:00
Alex Sharov
d617fca739
remove devp2p cmd - if we will support it then need do it in another repo (because it depends on account manager). ( #2496 )
...
* up cobra lib
* remove devp2p cmd - if we will support it then need do it in another repo (because it depends on account manager).
2021-08-08 09:17:08 +07:00
Richard Patel
7767b4df88
rpcdaemon: add txpool_status() ( #2407 )
...
perfecto
2021-08-06 09:45:44 +07:00
Alex Sharov
6bd44eb26c
move kv to erigon-lib ( #2467 )
2021-07-29 18:53:13 +07:00
Alex Sharov
5069558752
Apache licensed logger ( #2460 )
2021-07-29 17:23:23 +07:00
Alex Sharov
838e5f9ef2
Move bucket constants into kv package, move kv interface to kv package ( #2455 )
2021-07-28 09:47:38 +07:00
Alex Sharov
054581f507
staged syncs automatically add error prefix about stage number and name ( #2445 )
2021-07-26 13:19:01 +07:00
ledgerwatch
026c4e9d02
Reorg ropsten solution ( #2419 )
...
* Reorg ropsten solution
* Add option
* Print TD recalc
* Correct fix for eip1559
* Try to fix the unwind
* Print header progress and hash
* Not insert descendants of bad headers
* Print some more
* Print less
* Better way of marking bad headers
* Disable inSync
* Penalise peers who give incorrect chain pieces
* better fix for initial cycle
* Clean up
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-07-22 16:49:36 +01:00
Alex Sharov
031b0b177e
remove mutexes use ( #2406 )
2021-07-20 15:34:11 +07:00
Alex Sharov
499b5ce6ce
remove reader/writer builder ( #2386 )
...
* remove builder
* remove builder
2021-07-17 13:38:53 +07:00
Alex Sharov
c9e4e0bd3d
broadcast local txs ( #2354 )
2021-07-15 11:17:48 +07:00
alex.sharov
a389cb0a00
hide "peer not found" err
2021-07-15 09:40:07 +07:00
Alex Sharov
855e9220fa
print better log ( #2358 )
2021-07-13 18:03:32 +07:00
ledgerwatch
336515124b
Sentry handshake fix (?) and not overwriting statusData with zero block ( #2355 )
...
* Not overwrite statusData from txpool status
* Report error when doing sentry handshake
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-07-13 10:33:04 +01:00
Alex Sharov
b38d3fc34b
don't print peer logs on shutdown ( #2341 )
2021-07-11 16:16:17 +07:00
Alex Sharov
188dfb14b8
txPool: propagate on peer connect ( #2335 )
2021-07-11 14:01:16 +07:00
Alex Sharov
afd8674c4b
Peer log ( #2294 )
...
* Revert "Revert "better handshake""
This reverts commit 4141c54c95
.
* better peers logs
* better peers logs
2021-07-04 08:51:08 +01:00
Alex Sharov
4baad9f4b9
Sentry: better handshake ( #2293 )
2021-07-04 11:30:31 +07:00
Alex Sharov
b9be0cadad
don't stop iterate over peers on error ( #2274 )
2021-07-03 08:03:27 +01:00
ledgerwatch
a05d1be531
Pull grpc bindings into erigon-lib ( #2265 )
...
* Pull grpc bindings into erigon-lib
* Remove mdbx dist
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-07-01 22:31:14 +01:00
Alex Sharov
ea81761991
enable private rpc by default in Erigon, better logs in the beginning ( #2262 )
2021-07-01 22:30:55 +01:00
Alex Sharov
8f6aa2f7ae
propagate new tx to p2p ( #2254 )
2021-06-29 17:00:22 +07:00
Alex Sharov
a6f4b08716
Revert "Propagate new txs to P2P ( #2249 )" ( #2253 )
...
This reverts commit e9ae6d688f
.
2021-06-29 15:46:00 +07:00
Alex Sharov
e9ae6d688f
Propagate new txs to P2P ( #2249 )
2021-06-29 14:40:23 +07:00
Alex Sharov
59d05dc5fe
hide file exists err ( #2218 )
2021-06-22 11:09:45 +01:00
Alex Sharov
bc271f92ce
To break dependency to db implementation - move all db classes to "ethdb/kv" and leave in "ethdb" only interfaces ( #2195 )
2021-06-19 15:21:53 +07:00
mempirate
ca926ce94d
net_peerCount for remote sentries ( #2192 )
...
* net_peerCount for remote sentries
* cleanup
* Simplify NetPeerCount using SentryClient
* Refactor id -> count
2021-06-18 14:34:15 +01:00
ledgerwatch
535ce8fb9c
Try to solve sentry hanging problem + p2p impovement from geth ( #2191 )
...
* Try to solve sentry hanging problem + p2p impovement from geth
* Fix import
* Finer stream lock
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-06-18 12:47:46 +01:00
ledgerwatch
8a166204b4
Fix for peer not found messages ( #2181 )
...
* Fix for peer not found messages
* Print proto on disconnects too
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-06-16 17:18:19 +01:00
Alex Sharov
dcf850dd75
fix fieldalignment linter warnings ( #2171 )
2021-06-16 11:00:35 +07:00
Alex Sharov
b160e30652
Send GetBlockHeaders immediately if TD of connected peer >= our TD ( #2169 )
...
* empty engine
* start sync from peer right after handshake if it's TD is higher
* fixCanonicalChain to print logs
* clean
* >
2021-06-15 13:43:55 +01:00
BitBaseBit
7ed337cdcc
Implemented panic handling, graceful shutdown and reporting for all goroutines that don't explicitly handle them. ( #2153 )
...
* implemented crash reporting for all goroutine panics that aren't handled explicitly
* implemented crash reporting for all goroutine panics that aren't handled explicitly
* changed node defaults back to originals after testing
* implemented panic handling for all goroutines that don't explicitly handle them, outputting the stack trace to a file in crashreports
* handling panics on all goroutines gracefully
* updated missing call
* error assignment
* implemented suggestions
* path.Join added
* implemented Evgeny's suggestions
* changed path.Join to filepath.Join for cross-platform
* added err check
* updated RecoverStackTrace to LogPanic
* updated closures
* removed call of common.Go to some goroutines
* updated scope capture
* removed testing files
* reverted back to original method, I feel like its less intrusive
* update filename for clarity
2021-06-13 17:41:39 +01:00
Alex Sharov
eedabfca85
txpool_content ( #2127 )
...
* txpool_content
* txpool_content
* txpool_content
* txpool_content
* Squashed 'interfaces/' content from commit 1e916d013
git-subtree-dir: interfaces
git-subtree-split: 1e916d0137aff7bd9e9356cc203cea5f0ea9c7f1
* add test
* add test
* add test
* merge devel
* save
2021-06-11 09:34:47 +01:00