tersec
4a9a7be271
faster syncing ( #1348 )
...
* maybe faster syncing
* 80-character lines
* remove instrumentation debugEchos; fix target attestation epoch in attestation pool validation
* use the epoch-granularity matching in attestation.addResolved(...)
2020-07-22 09:51:45 +02:00
Jacek Sieka
7e0bf7b1b5
Add separate state for clearance ( #1352 )
...
When clearing blocks, a callback is called - this callback, if it uses
`tmpState`, will be corrupted because it's not fully up to date when the
callback is called - we thus introduce a specific state cache for this
purpose - ideally, it can be removed later when epoch caching is
improved.
Incidentally, this helps block sync speed a lot - without this state,
the block sync would ping-pong between attestation state and block state
which is costly.
2020-07-22 08:25:13 +02:00
tersec
83abbcb917
drop get_attesting_indices()/get_unslashed_attesting_indices() from 15% to 1% of workload at block_sim at 100k validators ( #1351 )
2020-07-21 18:35:43 +02:00
Eugene Kabanov
8c5aa7cbe7
Use only secp256k1 as identity in libp2p. ( #1343 )
...
* Add libp2p_pki_schemes to beacon_node and inspector configuration files.
* Fix inspector.nim.cfg file name.
* Do not allow beacon_node to be build without libp2p_pki_schemes option value.
* Fix compilation problems.
* Fix tests.
* Fix validator_client.
2020-07-21 18:07:14 +02:00
Eugene Kabanov
431a399662
All logs should be stored in appropriate node's folder. ( #1349 )
2020-07-21 12:29:22 +02:00
Jacek Sieka
6712c7bdfd
Bumps2 ( #1336 )
...
* bumps
2020-07-17 07:02:10 +00:00
Ștefan Talpalaru
1758a3dd8d
Merge pull request #1342 from status-im/bumpnbs
...
bump vendor/nimbus-build-system
2020-07-16 22:41:34 +02:00
Ștefan Talpalaru
9571cb5f7a
bump vendor/nimbus-build-system
2020-07-16 21:08:27 +02:00
Ștefan Talpalaru
30df19eb14
Merge pull request #1340 from status-im/localtestnet
...
launch_local_testnet.sh: make node 0 the bootstrap node
2020-07-16 21:06:24 +02:00
Ștefan Talpalaru
ffd4bc1dd4
launch_local_testnet.sh: make node 0 the bootstrap node
2020-07-16 19:04:57 +02:00
Corey
40c2714ff3
Update issue templates
2020-07-16 09:43:07 -04:00
Jacek Sieka
8b01284b0e
cache block hash ( #1329 )
...
hash_tree_root was turning up when running beacon_node, turns out to be
repeated hash_tree_root invocations - this pr brings them back down to
normal.
this PR caches the root of a block in the SignedBeaconBlock object -
this has the potential downside that even invalid blocks will be hashed
(as part of deserialization) - later, one could imagine delaying this
until checks have passed
there's also some cleanup of the `cat=` logs which were applied randomly
and haphazardly, and to a large degree are duplicated by other
information in the log statements - in particular, topics fulfill the
same role
2020-07-16 15:16:51 +02:00
cheatfate
6052f36fcd
Fix #1241 .
2020-07-16 13:01:18 +03:00
Viktor Kirilov
3dfbc311ad
log files also for the VC version of the altona target
2020-07-15 17:16:37 +03:00
Viktor Kirilov
4767eba465
- properly distributing the keys between BNs & VCs - fixing finalization - will switch to ON by default as soon as finalization becomes overall stable
...
- added a new altona-vc Makefile target which uses a separate VC process
2020-07-15 16:18:21 +03:00
zah
8970a22fdd
Add a non-optional Json file log for the beacon node as stopgap measure ( #1322 )
...
* Add a non-optional Json file log for the beacon node as stopgap measure
* Fix the build with -d:testnet_servers_image
2020-07-15 15:15:55 +02:00
tersec
26e893ffc2
restore EpochRef and flush statecaches on epoch transitions ( #1312 )
...
* restore EpochRef and flush statecaches on epoch transitions
* more targeted cache invalidation
* remove get_empty_per_epoch_cache(); implement simpler but still faster get_beacon_proposer_index()/compute_proposer_index() approach; add some abstraction layer for accessing the shuffled validator indices cache
* reduce integer type conversions
* remove most of rest of integer type conversion in compute_proposer_index()
2020-07-15 12:44:18 +02:00
tersec
4aefd8b021
fix over/underflow in proposerslashing processing ( #1325 )
2020-07-15 10:38:45 +00:00
Giovanni Petrantoni
49cdd348d1
use splitLines to read bootstrap nodes list ( #1321 )
2020-07-15 10:13:34 +02:00
Ștefan Talpalaru
86348dcb97
Merge pull request #1316 from status-im/devel
...
merge devel into master
2020-07-14 14:21:02 +02:00
Ștefan Talpalaru
a82c38d34f
Merge pull request #1315 from status-im/bump
...
bump submodules
2020-07-14 04:53:06 +02:00
Ștefan Talpalaru
88a9629c2b
bump submodules
2020-07-14 03:01:23 +02:00
Dmitriy Ryajov
b0470d7318
bumps ( #1289 )
...
Co-authored-by: Jacek Sieka <jacek@status.im>
2020-07-13 22:05:04 +02:00
Eugene Kabanov
19874969f0
Disable libbacktrace on Windows x64. ( #1308 )
2020-07-13 16:02:32 +00:00
Jacek Sieka
d6897409e4
bump-eth ( #1310 )
2020-07-13 16:58:56 +02:00
Jacek Sieka
300e0d57c1
avoid replaying long empty slots on old votes ( #1304 )
...
* avoid replaying long empty slots on old votes
* fixup!
* fixup!
* fixup!
2020-07-13 16:58:38 +02:00
zah
0be77f9cbc
Restore compilation with custom presets ( #1309 )
...
This also assigns precise types to the constants in the minimal
and mainnet presets in order to reduce the chance of compilation
errors when custom presets are used (previously, only the custom
presets have precisely assigned types for the constants).
2020-07-13 16:44:58 +02:00
Ștefan Talpalaru
b01be646cf
Makefile: "publish-book" target combines both books ( #1306 )
...
Since both books share the same Git branch and the same base URL, it
makes sense to combine them when publishing.
2020-07-13 12:46:42 +02:00
Kim De Mey
80cba4db91
Bump nim-eth ( #1305 )
2020-07-13 12:46:05 +02:00
Zahary Karadjov
49800b3360
Hotfix: fix Altona's GENESIS_FORK_VERSION value
2020-07-13 12:10:26 +03:00
Zahary Karadjov
74396747a3
Address review comments; Add a test
2020-07-12 21:01:31 +03:00
Zahary Karadjov
93b04bc214
Add an option for graffiti customization
2020-07-12 21:01:31 +03:00
tersec
853bd5b799
quick workaround for epochref cache issue ( #1296 )
...
* quick workaround for epochref cache issue
* disable assertion which doesn't work without epochref caches
* get local testnets and altona running again
2020-07-12 17:09:49 +02:00
Ștefan Talpalaru
476568ac59
add "--web3-url" option [skip ci]
2020-07-11 19:00:19 +03:00
Ștefan Talpalaru
61c6926263
fix docker/shared_testnet/entry_point.sh [skip ci]
2020-07-11 19:00:19 +03:00
Eugene Kabanov
c544a3b250
Bump nimcrypto. ( #1301 )
...
* Bump nimcrypto.
* Add more recent version
2020-07-11 15:14:23 +02:00
Ștefan Talpalaru
86241d7303
Merge pull request #1300 from status-im/deactivate-dual-fork-choice
...
Deactivate dual fork choice
2020-07-11 00:07:53 +02:00
Jacek Sieka
d6f317950c
Compute state root instead of loading from database ( #1297 )
...
htr is fast now, so hitting the database to load the state root is no
longer motivated - the more simple code is less vulnerable to database
corruption.
2020-07-10 22:47:39 +02:00
Mamy André-Ratsimbazafy
344175d1a2
Deactivate dual fork choice
2020-07-10 18:47:48 +02:00
Zahary Karadjov
87928e0069
Documentation; 'deposits create' can now ask for a private key
2020-07-10 18:18:14 +03:00
Zahary Karadjov
d16676b294
Bake the metadata for testnet0 and testnet1 as well; Remove the old scripts
2020-07-10 17:39:54 +03:00
Zahary Karadjov
ec06701f3c
Merge devel again
2020-07-10 16:44:03 +03:00
Zahary Karadjov
7280b0aa61
Remove unsused import
2020-07-10 16:30:45 +03:00
tersec
0ab809cc94
synchronize test result summary with make test results ( #1299 )
2020-07-10 13:29:16 +00:00
Zahary Karadjov
c06c60dcaf
Merge branch 'devel' into cli-reforms
2020-07-10 16:23:27 +03:00
Zahary Karadjov
785d8b1950
Use the old altona data directories
2020-07-10 16:23:11 +03:00
Zahary Karadjov
c0241305c6
Fix a build issue manifesting in Jenkins
2020-07-10 16:21:36 +03:00
tersec
5d5957fd7e
fix attestation handling bottlenecks in slot processing and quadratic-time inclusion delay rewards/palties in epoch processing; create infrastructure for dynamically (un)subscribing to/from attestation topics ( #1294 )
2020-07-10 09:24:04 +00:00
Kim De Mey
396825344c
Bump nim-eth and adjust code for it ( #1293 )
2020-07-10 11:17:15 +02:00
Eugene Kabanov
01c00c960c
Fix syncman topics log lines. ( #1295 )
...
* Fix syncman log topics is not applied properly.
2020-07-10 11:25:58 +03:00