Jacek Sieka
2a67ac3c05
trie -> kv store
...
* simplify data storage to key-value, tries are not relevant for NBC
* locked-down version of lmdb dependency
* easier to build / maintain on various platforms
2020-01-20 13:39:37 +00:00
Jacek Sieka
3dcdce137a
remove sereth, refresh serialized sizes
2020-01-20 08:42:48 +00:00
Jacek Sieka
d853d7c024
remove SigKey.init (unused, fixes #664 )
2020-01-18 10:22:17 +01:00
Jacek Sieka
3439763a9e
fix beacon node init
...
* update forkversion correctly
* ensure supplied state snapshot starts at genesis - we don't support
anything else
* more database sanity checks
2020-01-17 21:26:28 +00:00
Dustin Brody
c301e5d42f
mark 49 0.9.2/0.9.4 spec functions/data types as 0.10.0
2020-01-15 12:34:16 +00:00
Jacek Sieka
860be026e1
fix block pool init head selection
...
the head state is not necessarily saved in the database, so we need to
make sure we update things to the correct place
2020-01-15 12:17:49 +00:00
Mamy André-Ratsimbazafy
b49003988a
Add Epoch Processing to nbench
2020-01-15 10:03:56 +00:00
Dustin Brody
8eaebf7163
update to spec version 0.10.0
2020-01-14 18:17:16 +00:00
Ștefan Talpalaru
56b7ae31f9
Merge pull request #673 from status-im/devel
...
merge devel
2020-01-13 22:30:28 +01:00
Ștefan Talpalaru
c23cc7fcab
Jenkins: can't parallelise that
2020-01-13 21:20:32 +01:00
Ștefan Talpalaru
1941cfed80
CI: also build native libp2p tool variants
2020-01-13 20:58:12 +01:00
Ștefan Talpalaru
2f68ee0ffe
new libp2p API
2020-01-13 20:26:19 +01:00
Ștefan Talpalaru
5d1e20012a
import base58 from stew
2020-01-13 20:02:29 +01:00
Ștefan Talpalaru
6a9baf9688
bump vendor/nim-libp2p
2020-01-13 19:53:42 +01:00
Ștefan Talpalaru
7c4d636f83
undo try blocks; that's not the traceback's source
2020-01-13 19:02:38 +01:00
Ștefan Talpalaru
468e0815b3
not a CatchableError
2020-01-13 18:53:59 +01:00
Ștefan Talpalaru
931071e4de
Merge branch 'senderrorresponse' into devel
2020-01-13 18:37:27 +01:00
Ștefan Talpalaru
003a4c90be
sendErrorResponse(): don't crash when unable to send to peer
2020-01-13 17:12:49 +01:00
Ștefan Talpalaru
13b9f61f6f
reset_testnet.sh: `make build` moved earlier [skip ci]
2020-01-13 14:48:19 +01:00
Ștefan Talpalaru
05f0950f41
cosmetic change [skip ci]
2020-01-13 14:40:40 +01:00
Ștefan Talpalaru
cc1c3f9181
reset_testnet.sh: restart the nodes [skip ci]
...
Watchtower seems broken, so we need to restart them explicitly.
2020-01-13 13:55:09 +01:00
Ștefan Talpalaru
c6f8fdab13
reset_testnet.sh: add newline [skip ci]
2020-01-13 13:37:50 +01:00
Ștefan Talpalaru
6e1b60de36
reset_testnet.sh: avoid "unbound variable" error [skip ci]
2020-01-13 13:21:22 +01:00
Ștefan Talpalaru
22eaf3cd14
Merge branch 'testnetscript' into devel
2020-01-13 13:18:25 +01:00
Ștefan Talpalaru
c39ca5b5c3
reset_testnet.sh: push the Docker image right after building it [skip ci]
...
and let Watchtower manage container restart
2020-01-13 12:58:16 +01:00
Nathaniel Jensen
9aeef775ae
Format code.
2020-01-09 17:44:41 +02:00
Nathaniel Jensen
a37fac864f
Update exception handling based on discussions.
...
ValueErrors identified as associated with logging and are classed as a
failure rather than expected behavior.
2020-01-09 17:44:41 +02:00
Jacek Sieka
1228ca6243
Merge remote-tracking branch 'origin/master' into devel
2020-01-08 14:39:19 +01:00
Nathaniel Jensen
e356ae0405
Remove skipValidation for block, block_header handlers.
...
As differences are being identified due to it skipping block parent root
validation.
2020-01-08 13:46:14 +02:00
Nathaniel Jensen
e795234504
Nfuzz to set runtime skipValidation flag where possible.
...
Note: this does more than just disable bls - see #407 ,
so is not strictly consistent with other `beacon-fuzz`
implementations.
2020-01-08 13:46:14 +02:00
Nathaniel Jensen
a08db4b311
Implement nfuzz_block_header nfuzz_attester_slashing harnesses.
...
Add notes where not certain whether the error should crash or return
false.
Update header.
2020-01-08 13:46:14 +02:00
Nathaniel Jensen
5978f09261
Allow defects and assertions to propagate in fuzzing harnesses.
...
Add some slight libnfuzz readme notes.
Adjust exception tagging appropriately.
2020-01-08 13:46:14 +02:00
Nathaniel Jensen
0d764d87af
Raise exception when failing deserialization instead of returning false.
...
Fuzzer preprocessing should provide valid ssz.
2020-01-08 13:46:14 +02:00
Dustin Brody
dff61c2ea1
fix UnusedImport warning
2020-01-08 13:46:14 +02:00
Dustin Brody
8090a15cc2
fix UnusedImport warning
2020-01-07 18:06:20 +00:00
Zahary Karadjov
3cecb68f84
Merge branch 'devel'
2020-01-06 21:31:14 +02:00
Jacek Sieka
0d1727e2cb
Update README.md
2020-01-01 12:34:30 +01:00
Jacek Sieka
1fef4090b5
Update README.md
...
Need git on bare ubuntu
2019-12-31 15:31:59 +01:00
Jacek Sieka
265b9aaf39
Update README.md
...
it's `build-essential` on debian
2019-12-31 13:37:25 +01:00
Jacek Sieka
148527c716
slot fixes
...
* fix slot time navigation, add tests
* skip block proposal if head is more recent already - shouldn't happen
* use correct head when attesting to previous blocks
* log slot start/end processing
2019-12-23 17:56:56 +00:00
Dustin Brody
c731c67a50
add copyright header to state_sim and run it in mainnet config, like the other tests, in CI
2019-12-23 17:00:52 +02:00
Dustin Brody
46de726e3d
mark all compatible 0.9.3 functions and data structures as 0.9.4
2019-12-20 17:24:42 +00:00
tersec
b49a2f8c2c
Update README.md
2019-12-20 17:22:42 +00:00
Dustin Brody
3e7d56a66f
update test suite to 0.9.4 vectors
2019-12-20 16:37:36 +00:00
Mamy Ratsimbazafy
106352aff3
Nbench - Flexible benchmarking of Nimbus internals ( #641 )
...
* nbench PoC
* Remove the yaml files from the example scenarios
* update README with current status
* Add an alternative implementation that uses defer
* Forgot to add the old proc body
* slots-processing
* allow benching state_transition failures
* Add Attestations processing (workaround confutils bug:
- https://github.com/status-im/nim-confutils/issues/10
- https://github.com/status-im/nim-confutils/issues/11
- https://github.com/status-im/nim-confutils/issues/12
* Add CLI command in the readme
* Filter report and add notes about CPU cycles
* Report averages
* Add debugecho style time/cycle print
* Report when we skip BLS and state root verification
* Update to 0.9.3
* Generalize scenario parsing
* Support all block processing scenarios
* parallel bench runner PoC
* gitBetter load issues reporting (the load issues were invalid signature and expected to fail)
2019-12-20 17:14:43 +01:00
Dustin Brody
417f96213d
fix genesis interop by fixing deposit signature handling; add TRACE-level compilation to CI
2019-12-20 15:26:48 +00:00
Jacek Sieka
746659bdc6
bump stew, fix warnings ( #655 )
2019-12-20 14:25:33 +01:00
Jacek Sieka
07c37517ea
disable block/attestation pool tests in mainnet
2019-12-19 16:17:45 +00:00
Jacek Sieka
b994da78a7
Move some attestation/block logic out of beacon node
...
* state data cache in block pool
* keep head state around
* more attestation logic in attestation pool
* first fork choice tests (!)
* fix fork choice (it's still likely broken / out of date)
2019-12-19 16:17:45 +00:00
Dustin Brody
ea4afd7454
mark 19 more 0.9.2-compatible entities as 0.9.3-compatible
2019-12-19 11:46:30 +00:00