ledgerwatch
d16460e676
Rename maxHeight to lowestAnchorHeight for better readability ( #3105 )
...
* Rename maxHeight to lowestAnchorHeight for better readability
* Update header_algos.go
* Rename timestamp field in anchor, add comments
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2021-12-08 21:56:02 +00:00
Enrique Jose Avila Asapche
c3ed07ca4a
Implementing basic unwind process for Proof-of-stake ( #3083 )
...
* initial commmit
* gofmt
* flipped if statement
* flipped if statement (forgot to save)
* passing unwinding to status ch
* added unwinding constant
* took out unwinding
* added statusCh
* added a return statement and a second part to the if statement
* checking for parent hash
* checking for parent hash
* changed check to check for parentHash
* staged wrong file
* changed header check to parentHash check
* channged blockhash name to a better name
* changed it to check for header.Hash()
* changed name of blocknumber to blockHash
* changed bad block to common.Hash{}
2021-12-07 17:36:12 +01:00
Alexandr Borodulin
bbb3cc978f
Starknet getcode ( #3038 )
...
* deploy_cairo_smartcontract
* deploy_cairo_smartcontract / 2
Add new transaction type for cairo and vm factory
* starknet_getcode
* deploy_cairo_smartcontract / 3
* deploy_cairo_smartcontract / 4
* deploy_cairo_smartcontract / 5
Co-authored-by: Aleksandr Borodulin <a.borodulin@axioma.lv>
2021-12-06 14:58:53 +00:00
ledgerwatch
494853ae39
Update skip analysis and preverified hashes ( #3097 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-12-06 12:40:06 +00:00
primal_concrete_sledge
d89e5d2603
Issue/2710 add grpc health check ( #3091 )
...
* ISSUE-2710: Add standard grpc health check to services with grpc server
* Go import changed files
* Add flags for healthcheck
* Add grpc healthcheck option to rpcdaemon
* Remove grpc port info if grpc is not enabled
* Resolve merge issues
2021-12-06 12:03:46 +00:00
Alex Sharov
3f34dee475
first revisit downloader service ( #3093 )
2021-12-06 10:06:37 +07:00
Alex Sharov
b7aa5be149
Remove snapshot migrator class ( #3088 )
2021-12-05 16:13:40 +07:00
Alex Sharov
178fd1931d
Genesis sync from existing snapshots ( #3087 )
2021-12-05 09:03:08 +07:00
Giulio rebuffo
3c95db0078
Fixed Proof-of-stake transition ( #3075 )
...
* added download channel to stage headers
* added direct execution
* now channel of headers rather than bodies
* simplifications
* fixed ttd headerForward
* garbage removed
* added some more stepping stones
* better transition
* covered edge case
* added names to returned values
* clean
2021-12-03 11:55:00 +01:00
Giulio Rebuffo
e76bc807bb
better api
2021-11-29 15:47:08 +01:00
Giulio rebuffo
cfed35921c
Merge branch 'devel' into enginev1
2021-11-29 09:57:56 +01:00
TBC Dev
57d641b6f9
Avoid redundant Block.Header() deep-copy ( #3050 )
...
* Add separate Block.Nonce() and Block.NonceU64()
* Add Block.Seal()
* Avoid redundant Block.Header() deep-copy
* Add warning comment for Block.Header()
2021-11-29 08:52:36 +00:00
Alex Sharov
8104a90993
Snapshot: exec and trie to support snapshot files ( #3033 )
2021-11-29 10:43:19 +07:00
ledgerwatch
c3e361eadb
Update skip analysis and preverified ( #3045 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-28 12:59:11 +00:00
TBC Dev
16058267c4
Use sub-slices for ChainSegment actions ( #3043 )
...
* Extract pruneLinkQueue() out of ProcessSegment()
* Use sub-slices for segment actions
2021-11-28 08:21:06 +00:00
TBC Dev
2f0758e817
ChainSegment efficiency ( #3042 )
...
* De-dup blockHeaders66() and blockHeaders65()
* Simplify loops and EOL detection
* Add ChainSegmentHeader struct and refactor
* Add RawRlpHash() to avoid re-encode for header hash
* Avoid multiple redundant rlpHash()
* Sort headers by height,hash to make dups consecutive
* Flip condition to reduce map lookups
* Remove redundant check
* Use rlp.RawValue rather than []byte to help self-document
2021-11-27 17:28:17 +00:00
Giulio Rebuffo
768617f412
added proper errors
2021-11-24 23:19:40 +01:00
Giulio Rebuffo
435d1d1519
channels implemented
2021-11-24 23:00:00 +01:00
Alex Sharov
6d24a30a01
Drop txpool v1 ( #3017 )
...
* drop_txpool_v1
* drop_txpool_v1
Co-authored-by: Alex Sharp <alexsharp@alexs-macbook-pro.home>
2021-11-22 18:38:51 +00:00
TBC Dev
e1c44cd19b
Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey) ( #3013 )
...
* Rename protoHandshake.ID to protoHandshake.Pubkey
* Fix enode.ID comment descriptions
* Change sentry peer_id from H512 pubkey to H256 keccak256(pubkey)
* Simplify PeerInfo helpers
2021-11-22 05:39:31 +00:00
ledgerwatch
3335532481
Update preverified hashes for mainnet and ropsten ( #3010 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-21 16:43:40 +00:00
Alex Sharov
b3e8a1a02a
hack: remove createIdx and txLookup methods ( #3000 )
2021-11-21 12:06:36 +07:00
Alex Sharov
f3aebbe1aa
Snapshot: common indexing func ( #2999 )
2021-11-21 11:14:37 +07:00
Alex Sharov
e55256296b
snapshots: read block from snapshots, add sender to txs file ( #2996 )
2021-11-21 10:32:14 +07:00
Alex Sharov
d4850b6adc
Hack: dump bodies and headers ( #2994 )
2021-11-20 09:41:01 +07:00
Alex Sharov
2a08dbd3d9
Recsplit: move files read/write helpers to erigon-lib ( #2993 )
2021-11-19 12:12:25 +07:00
Alex Sharov
5b634a790e
Canonical tx ids ( #2986 )
...
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
2021-11-18 14:07:55 +00:00
Giulio rebuffo
e6916d4d00
[EIP-4399 2/3] Added total difficulty stage and transition logic ( #2964 )
...
* added diff stage
* added td stage
* improvements + more tests
* added err check
* added err check
* transition raw interfaces
* interface for transition
* unwind updates
* maybe this fix
* now fixed?
* fixes
* better db-format
* better db-format
* sum and mod
* sum and mod
* fixed headers unwind
2021-11-17 15:50:41 +00:00
ledgerwatch
2ad6ca10cf
Ropsten and main net preverified hashes, skip analysis ( #2973 )
...
* Ropsten preverified hashes
* Pre-verified hashes for mainnet, skip analysis
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-11-16 20:14:26 +00:00
Alex Sharov
861ef7a6c1
Open blocks snapshots ( #2957 )
2021-11-16 15:33:41 +07:00
TBC Dev
5ddbf843d1
Avoid a redundant rlpHash() in FeedHeader() ( #2959 )
2021-11-15 08:52:14 +00:00
TBC Dev
9e5ae33eb0
Use IsZero() instead of Sign() for uint256.int ( #2960 )
2021-11-14 22:18:47 +07:00
TBC Dev
669b5dd3ab
Add trusted peers flag ( #2958 )
...
* Refactor and consolidate enode-list config parsing
* Add trustedpeers flag
2021-11-14 18:44:44 +07:00
Alex Sharov
aad0d0c777
grpc GetBlock api ( #2955 )
2021-11-14 11:08:52 +07:00
TBC Dev
3df4197f2e
Fix header skeleton ( #2945 )
...
* Fix underflow only
* Rename queryRange to maxHeight
* Fix additional cases
2021-11-11 07:53:32 +00:00
Giulio rebuffo
ab4c080cbc
Merge pull request #2939 from ledgerwatch/enginev1
...
Dropped ETH65
2021-11-10 21:44:39 +01:00
Alex Sharov
deed48c01a
Small step towards torrent downloader ( #2929 )
2021-11-08 20:40:56 +07:00
Giulio Rebuffo
02d3c697d1
removed eth64/65 tests
2021-11-07 22:16:49 +01:00
Giulio Rebuffo
f34ccb75e5
refactor downloader
2021-11-07 20:25:37 +01:00
alex.sharov
5d0f081a9c
save
2021-11-04 15:45:55 +07:00
Alex Sharov
702631bf6f
prohibit change prune mode ( #2908 )
2021-11-03 20:05:52 +07:00
Alex Sharov
8c6c9527db
Drop --txpool.v1 flag ( #2901 )
2021-11-02 09:35:58 +07:00
Alex Sharov
fc010b77ee
Switch sentry mock to pool v2 ( #2885 )
...
* save
* save
* save
* save
* save
* save
* save
* pool v2 docs
* pool v2 docs
* pool v2 docs
* save
* save
* save
* save
* save
* save
* save
2021-10-28 21:18:34 +07:00
ledgerwatch
79b5de6d8e
Update header_algos.go ( #2882 )
2021-10-28 09:17:03 +01:00
Alex Sharov
84da57f62c
revert run only stage.Headers at first cycle ( #2879 )
2021-10-28 10:13:00 +07:00
ledgerwatch
3f21910963
Update preverified headers (main net, roosten), update skip analysis block ( #2875 )
...
* Preverified headers
* Update skip analysis
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-10-27 17:16:20 +01:00
ledgerwatch
113a9be3b8
[header download] Preserve heap invariant in SentRequest function ( #2873 )
...
* [header download] Preserve heap invariant in SentRequest function
* Update header_algos.go
2021-10-27 12:34:01 +01:00
Alex Sharov
5d7904c133
erl.collector - move logPrefix to constructor ( #2866 )
2021-10-25 15:09:43 +07:00
Alex Sharov
e6bd6fbfcc
Add p2p msg to panic ( #2861 )
2021-10-22 09:51:49 +07:00
Alex Sharov
583a753e13
start_pool_at_genesis_on_devnet ( #2856 )
2021-10-21 16:01:34 +07:00