Zahary Karadjov
540b2828b2
Adapt the local sim scripts to use the new run-time presets
2020-07-10 01:08:54 +03:00
Zahary Karadjov
318b225ccd
Merge devel and resolve the conflicts
2020-07-08 15:36:03 +03:00
Zahary Karadjov
5d056ba667
Switch to uint64 as the default type for preset values
2020-07-08 14:00:40 +03:00
Viktor Kirilov
1482b0430d
- work towards more REST API endpoints being implemented
...
- testnets can now be launched with a separate validator client - make altona SCRIPT_PARAMS="--separateVC"
- reverted the ctrl+C signal handler code reuse - not necessary for the VC anyway (default is good enough)
- added a bit more logging in the VC
- removed unnecessary code in the VC - connect() just parses the address & port...
- fixed a couple more VC issues - when fetching the duties for an epoch fails on the BN side ==> the VC shouldn't be left in a broken state
- documented the currently supported json-rpc endpoints
- added more checks on the BN side for the API - bounds-checking the requests & also checking if the BN itself is synced
- other cleanup
currently a local sim doesn't finalize, but participation in the altona network with a separate VC is painless and works just as well as with in-process validators in a BN
2020-07-08 13:29:03 +03:00
Dustin Brody
fc8502c54e
halve memory usage from state caches
2020-07-08 10:21:41 +00:00
Jacek Sieka
f53425873c
Only use noise
2020-07-08 08:05:38 +00:00
Dustin Brody
8ac613421d
only calculate total_balance once per attestation delta application
2020-07-08 07:45:21 +00:00
Dustin Brody
3c030d945d
allow 50k validators on block_sim by avoiding repeated get_total_active_balance() in get_proposer_reward()
2020-07-08 07:45:21 +00:00
Zahary Karadjov
c4af4e2f35
Working test suite with run-time presets
2020-07-08 02:02:14 +03:00
Jacek Sieka
6fe0a623f5
Crypto rng ( #1284 )
...
* use bearssl rng throughout
* bump
* bump
* move keygen out of crypto
2020-07-07 17:51:02 +02:00
cheatfate
6ef2e71468
Fix names
2020-07-07 15:34:04 +03:00
cheatfate
322ec3d2f9
Forward sync should always start from finalized epoch's first slot.
2020-07-07 15:34:04 +03:00
Eugene Kabanov
293d990d43
Fix PeerPool issue with peers overflow maxPeers setting. ( #1285 )
2020-07-07 11:49:08 +02:00
Zahary Karadjov
441ae9b58c
Introduce a RuntimePreset object for the overridable testnet preset values
2020-07-03 22:29:23 +03:00
tersec
a92276d510
adopt Result[void, string] in place of some bool return signatures ( #1275 )
...
* adopt Result[void, string] in place of some bool return signatures
* string -> cstring to reduce memory allocations; ensure all err() strings are constants, with contextual information from higher-level callers
* logScope usage fixes
* homogenize err() reporting convention
* invalid signature in deposit isn't an error
2020-07-03 17:03:14 +00:00
tersec
c64737e7f2
implement aggregated attestation receiving/validating ( #1272 )
...
* implement aggregated attestation receiving/validating
* document the conditions without explicit implementations in isValidAggregatedAttestation()
2020-07-02 16:15:27 +00:00
Zahary Karadjov
98761afc64
Run beacon_node --network=altona without initial Eth1 syncing
2020-07-02 18:52:48 +03:00
Zahary Karadjov
e342b96d2e
Embed the Altona metadata in the NBC executable
2020-07-02 18:14:11 +03:00
cheatfate
76c12d493e
Add check for late attestation sent messages in logtrace tool.
2020-07-02 10:36:04 +03:00
Zahary Karadjov
26b7202af3
Fix #1266
2020-07-01 22:01:50 +03:00
Jacek Sieka
f3e92762e3
add tests for unviable blocks ( #1271 )
...
* add tests for unviable blocks
also enable finalization tests in all test configs - they're plenty fast
now
also fix newClone for non-rvo cases. sigh.
* fixes
2020-07-01 19:00:14 +02:00
Jacek Sieka
66c230ffd1
check that parent of added block is sufficiently recent ( #1269 )
...
Otherwise, we might introduce a fork into the DAG that is no longer
viable, creating trouble for both sync and fork choice
2020-07-01 17:21:21 +02:00
Jacek Sieka
ef2f037571
bump libp2p ( #1267 )
2020-07-01 13:41:40 +02:00
Zahary Karadjov
c19321e578
Fix the 'maxDelay' FieldError problem during the initial deposit making when joining a testnet
2020-07-01 12:13:56 +03:00
tersec
fe20c36ba5
switch several beacon_node procs to funcs ( #1262 )
...
* switch several beacon_node procs to funcs
2020-06-30 13:53:57 +00:00
Jacek Sieka
e898525b16
More version in --version and less version in --help ( #1260 )
...
Long version and copyright banners is probably not what the user is
after when typing `--help`
2020-06-30 14:23:52 +02:00
tersec
d09e9f1aaf
remove non-snappy support from inspector; switch some procs to funcs ( #1261 )
...
* remove non-snappy support from inspector; switch some procs to funcs
* use mapIt instead of explicit for loop
2020-06-30 11:17:49 +02:00
tersec
b4db2ad693
remove v0.11.3 support; add block_sim to CI ( #1253 )
...
* remove v0.11.3 support; add block_sim to CI
* rm stray PERSISTENT_COMMITTEE_PERIOD
* remove TopicFilter.InteropAttestations
* bump two comment-spec-refs to v0.12.1
2020-06-29 18:08:58 +00:00
Zahary Karadjov
302cef5e90
Attach all local validators before starting the networking
2020-06-29 18:07:41 +03:00
Mamy Ratsimbazafy
510e8110ff
typo
2020-06-29 15:00:16 +02:00
Jacek Sieka
61fc535f8c
print networking info on startup
2020-06-29 14:01:18 +02:00
Jacek Sieka
047f354e9b
Don't wait for genesis to start network ( #1249 )
2020-06-29 07:34:48 +02:00
Zahary Karadjov
8140b4458c
Working local sim with WAIT_GENESIS=yes
2020-06-29 02:18:48 +03:00
Zahary Karadjov
9cd8a6c730
Working local sim (without waiting genesis)
2020-06-29 02:18:48 +03:00
Zahary Karadjov
96ac81c89f
Better UX; Don't delete testnet data folders
2020-06-29 02:18:48 +03:00
Zahary Karadjov
b9e653f7fd
Working genesis detection for Altona
2020-06-29 02:18:48 +03:00
Zahary Karadjov
31e31bb30c
Switch to monitoring of Blocks; More accurate genesis detection and faster Eth1 syncing
2020-06-29 02:18:48 +03:00
Jacek Sieka
816779733e
use the eth2 message id for gossip (in logging too) ( #1246 )
...
* use the eth2 message id for gossip (in logging too)
* bump
* add spec link
2020-06-28 22:06:50 +02:00
Jacek Sieka
ea57852359
count attestations from blocks while syncing ( #1244 )
...
* count attestations from blocks while syncing
* check for resolved old attestations
2020-06-28 19:32:11 +02:00
Jacek Sieka
eeccaaf16d
stop gossipping non-snappy ( #1240 )
...
* stop gossipping non-snappy
Also simplify subscription and actually handle decoding errors
* log weird states too
2020-06-27 12:16:43 +02:00
Mamy Ratsimbazafy
fc3a18039d
typos
2020-06-26 15:51:20 +02:00
Mamy Ratsimbazafy
9b05581695
typo
2020-06-26 14:36:21 +02:00
Zahary Karadjov
322a12fed7
Fix the Eth1 deposit contract monitoring on Witti
2020-06-26 02:33:39 +03:00
zah
578ea2013a
implement spev v0.12.1 in initialize_beacon_state_from_eth1 ( #1236 )
2020-06-25 16:24:55 +02:00
tersec
fe15d473c9
effectively revert withEpochState ( #1235 )
2020-06-25 14:14:41 +02:00
Jacek Sieka
1301600341
Trusted blocks ( #1227 )
...
* cleanups
* fix ncli state root check flag
* add block dump to ncli_db
* limit ncli_db benchmark length
* tone down finalization logs
* introduce trusted blocks
We only store blocks whose signature we've verified in the database - as
such, there's no need to check it again, and most importantly, no need
to deserialize the signature when loading from database.
50x startup time improvement, 200x block load time improvement.
* fix rewinding when deposits have invalid signature
* speed up ancestor iteration by avoiding copy
* avoid deserializing signatures for trusted data
* load blocks lazily when rewinding (less memory used)
* chronicles workarounds
* document trustedbeaconblock
2020-06-25 12:23:10 +02:00
Mamy Ratsimbazafy
902093f57c
Revert "Dual headed fork choice [Reloaded] ( #1223 )" ( #1234 )
...
This reverts commit 6836d41ebd
.
2020-06-25 11:36:03 +02:00
Zahary Karadjov
62e4efe34b
Re-wire the sending of deposits by the 'deposits create' command
2020-06-24 23:06:05 +03:00
Zahary Karadjov
384e512031
Implement EIP-2386 wallets; Progress towards a CLI for interactive wallet creation
...
For more information:
4494da0966/EIPS/eip-2386.md (specification)
2020-06-24 23:06:05 +03:00
Mamy Ratsimbazafy
6836d41ebd
Dual headed fork choice [Reloaded] ( #1223 )
...
* Dual headed fork choice
* fix finalizedEpoch not moving
* reduce fork choice verbosity
* Add failing tests due to pruning
* Properly handle duplicate blocks in sync
* test_block_pool also add a test for duplicate blocks
* comments addressing review
2020-06-24 20:24:36 +02:00