Victor Farazdagi
0eaf0cf27b
Properly handles possible nil values ( #6042 )
...
* handles possible nil values
2020-05-29 12:09:04 +00:00
terence tsao
ac862d1e7e
Increase hot state cache size to 32 ( #6033 )
...
* Increase hot state cache size to 16
* Merge refs/heads/master into hot-state-cache-size
2020-05-29 05:01:40 +00:00
Ivan Martinez
cde127354c
Change slashing pool to use spec code ( #6030 )
...
* Change slashing pool to use more spec code
* Fix test
* Undo unneeded changes
* Make sure to catch regression
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-29 00:26:09 -04:00
Ivan Martinez
0b64db5e21
Add voluntary exit processing to E2E ( #6016 )
...
* Add voluntary exit to E2E
* Fix long urnning e2e
* Fix for comments
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-28 22:51:00 -04:00
Raul Jordan
88aaee36bf
Fix Weird Pre-Genesis Timestamp ( #6031 )
...
* ensure test passes
* Apply suggestions from code review
* comment
Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com>
2020-05-28 21:57:03 -04:00
terence tsao
3fe47c0043
Reduce attester state copies ( #6025 )
...
* Test
* Fix
* Removed extra line
* Feature flag
* Gaz
2020-05-28 13:33:08 -04:00
Ivan Martinez
7dd187c2ae
Small fixes for slasher ( #6021 )
...
* Small fixes for slasher
* Remove useless log
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-28 10:24:54 -04:00
terence tsao
e3180cf977
Invert state field trie ( #6013 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-28 08:24:26 -05:00
Victor Farazdagi
9e8eafda6a
Fixes problem in YAML front-matter of the new flag tracking issue template ( #6023 )
...
* fixes probleim in YAML front-matter
* Merge refs/heads/master into fix-feature-tracking-issue-template
2020-05-28 10:45:18 +00:00
Raul Jordan
9a2c684628
Recommend Users Blocked By Antivirus a Way to Curl Prysm.sh ( #6019 )
...
* recommend no revoke
* Merge refs/heads/master into antivirus
2020-05-28 10:00:19 +00:00
Nishant Das
979c0074c7
Register RPC And Pubsub Handlers After Genesis is Determined ( #6020 )
...
* fix
* fix test
2020-05-28 05:39:40 +00:00
Preston Van Loon
a139b75dc5
Add documentation and issue template for feature flags ( #6018 )
...
* Add details around feature flag usage and recommend filing tracking issues for feature flags.
* 🦄
* 🦄
* labels
* more comments
2020-05-27 20:37:37 -05:00
terence tsao
4c2ed410b0
Invert state ref copy flag ( #6015 )
...
* Revert "Release state-ref-copy flag (#6012 )"
This reverts commit ebf7122d6f
.
* Invert state ref copy flag
2020-05-27 14:30:54 -05:00
terence tsao
ebf7122d6f
Release state-ref-copy flag ( #6012 )
...
* Release state ref copy flag
* Merge refs/heads/master into invert-flag1
2020-05-27 18:08:12 +00:00
terence tsao
b7c856af6f
Add skip to log ( #6014 )
2020-05-27 12:35:54 -05:00
Nishant Das
7be8942079
Fix Fork Data in Local Node ( #5997 )
2020-05-27 08:07:40 -07:00
Ivan Martinez
29e4594783
Fix long running E2E after v0.12 changes ( #6008 )
...
* Fix deposits in long run e2e
* Fix participation
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-27 08:28:01 -05:00
Victor Farazdagi
f4778048ac
Init sync arbitrary batch length + full bandwidth utilization ( #5978 )
...
* allow to jump over 50K skipped slots
* more tests
* removes debug logs
* minor fixes
* re-arrage pid updates
* optimizes queue and fsm
* Merge branch 'master' into init-sync-arbitrary-batch-len
* fixes benchmark test
* Merge branch 'master' into init-sync-arbitrary-batch-len
* queue cleanup
* updates polling interval
* fsm test: allMachinesInState
* fsm test: highestStartBlock
* rest of fsm tests
* Merge branch 'master' into init-sync-arbitrary-batch-len
* Merge refs/heads/master into init-sync-arbitrary-batch-len
* Merge refs/heads/master into init-sync-arbitrary-batch-len
* Merge refs/heads/master into init-sync-arbitrary-batch-len
* Merge refs/heads/master into init-sync-arbitrary-batch-len
* Merge refs/heads/master into init-sync-arbitrary-batch-len
* parse machines in order
* Merge branch 'init-sync-arbitrary-batch-len' of github.com:prysmaticlabs/prysm into init-sync-arbitrary-batch-len
2020-05-27 09:13:41 +00:00
terence tsao
0c3586a8ea
Add debug proto array fork choice endpoint ( #6003 )
...
* Add proto array fork choice object to RPC
* Add pb
* Add pb
* Expose proto array store object
* Test
* Merge branch 'forkchoice-endpoint' of github.com:prysmaticlabs/prysm into forkchoice-endpoint
* s/Nodes/nodes
* Remove proto from gitignore
* More implementations of GetProtoArrayForkChoice
* Comments
* Use hex
* Gazelle
* GetForkChoice Test
* Remove pb.go
* Merge branch 'master' into forkchoice-endpoint
* Typo, thanks Raul!
* Merge branch 'forkchoice-endpoint' of github.com:prysmaticlabs/prysm into forkchoice-endpoint
2020-05-26 23:24:38 +00:00
Ivan Martinez
5afee4ba3a
Use SlotTickerWithOffset for StreamIndexedAttestations ( #5999 )
...
* Change streamindexed to slot ticker with offset
* Make 2/3rds
* Add test
* Merge branch 'master' of github.com:prysmaticlabs/prysm into ticker-offset
* Add check for offset
* Merge branch 'master' of github.com:prysmaticlabs/prysm into ticker-offset
* Fix test
* Merge refs/heads/master into ticker-offset
2020-05-26 19:34:09 +00:00
Ivan Martinez
0f7cf212a2
Prepare E2E for v0.12 ( #5991 )
...
* Prepare e2e for v0.12
* Fix e2e
* Comments
* Attempt 100% participation
* Fixes
* Fix
* Update readme
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-26 14:04:42 -05:00
Ivan Martinez
ecea979b60
Change StreamIndexedAttestations to use target root for state regen ( #5971 )
2020-05-26 09:21:17 -07:00
Raul Jordan
ad1d8074d0
Improve Deposit Data Account Creation Prompt ( #5985 )
...
* improve validator accounts create text
* Merge refs/heads/master into improve-deposit-data-promt
* Merge refs/heads/master into improve-deposit-data-promt
* Merge refs/heads/master into improve-deposit-data-promt
* Merge refs/heads/master into improve-deposit-data-promt
2020-05-26 13:24:46 +00:00
Victor Farazdagi
c70c52b40a
Runs go fmt
and updates validator files ( #5995 )
...
* updates validator files
2020-05-26 11:13:12 +00:00
Martin Linkhorst
b724b20828
Add missing TLS-related flags to Beacon Chain and Slasher ( #5984 )
...
* beacon-chain: add missing slasher flags
* slasher: add missing tls-cert flag
* Merge branch 'master' into tls
* Merge branch 'master' into tls
2020-05-26 02:08:15 +00:00
rkapka
b3f005fe94
Fixed deferring of closing dbs ( #5982 )
...
* fixed deferring of closing dbs
* removed unnecessary slice pointer
* Merge branch 'master' into merge-defer-fix
* Merge branch 'master' into merge-defer-fix
2020-05-26 00:38:41 +00:00
terence tsao
3b65cb6d0b
Consistent BLS function inputs ( #5969 )
...
* Make function input consistent
* Change back
* Typo
* Fixed test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-25 16:08:12 -05:00
Raul Jordan
497307decd
Remove Warning on Using Default Mainnet Config ( #5983 )
...
* removed mainnet warn
2020-05-25 19:43:10 +00:00
Victor Farazdagi
f81c8c6825
Allow to jump over 50K+ skipped slots in init-sync ( #5975 )
...
* allow to jump over 50K skipped slots
* more tests
* removes debug logs
* minor fixes
* re-arrage pid updates
* Merge refs/heads/master into init-sync-50K-skipped-slots
2020-05-25 16:43:59 +00:00
rkapka
277fa3300a
Merge validator databases ( #5968 )
...
* merge functionality
* merge testing
* log info when merge completed successfully
* extracted private methods
* fixed linter errors
* fixed compilation errors
* build files clean-up
* fixed failing test
* corrected command description
* close sources inside defer
* corrected documentation of NewKVStore
2020-05-25 11:20:35 -05:00
Ivan Martinez
b810243f41
Reverse historical detection flag for slasher ( #5958 )
...
* Reverse historical detection flag
* Merge branch 'master' of github.com:prysmaticlabs/prysm into reverse-historical-flag
* Merge branch 'master' of github.com:prysmaticlabs/prysm into reverse-historical-flag
* Fix build
* Merge refs/heads/master into reverse-historical-flag
* Fix test
* Merge branch 'reverse-historical-flag' of github.com:prysmaticlabs/prysm into reverse-historical-flag
* Merge refs/heads/master into reverse-historical-flag
2020-05-23 06:40:15 +00:00
Preston Van Loon
5a3114cdc9
Update BLS to allow for spec v0.12 requirements ( #5914 )
...
* update bls
* Update BLS, has a minor issue with blsVerifyAggregatedHashWithDomainCast. See https://github.com/herumi/bls-eth-go-binary/issues/17
* update
* fix build
2020-05-23 10:50:02 +08:00
Ivan Martinez
f9d847991c
Add RemoveOldestFromCache and save span cache on exit ( #5953 )
...
* Add RemoveOldestFromCache
* Add log
* comment
* gaz
* Merge branch 'master' into prune-spancache-historical
* Merge refs/heads/master into prune-spancache-historical
* Merge refs/heads/master into prune-spancache-historical
* Fix span defer
* Merge branch 'prune-spancache-historical' of github.com:prysmaticlabs/prysm into prune-spancache-historical
* Merge refs/heads/master into prune-spancache-historical
* Update slasher/db/kv/kv.go
2020-05-22 19:44:48 +00:00
Ivan Martinez
6aabea2d80
Reverse broadcast-slashing flag to disable-broadcast-slashings ( #5952 )
...
* Reverse broadcast-slashings to disable-broadcast-slashings
* Fix tests
* Merge branch 'master' of github.com:prysmaticlabs/prysm into toggle-broadcast-flag
* Merge refs/heads/master into toggle-broadcast-flag
* Fix for comments
* Merge branch 'toggle-broadcast-flag' of github.com:prysmaticlabs/prysm into toggle-broadcast-flag
* Merge refs/heads/master into toggle-broadcast-flag
2020-05-22 17:19:45 +00:00
Ivan Martinez
230659467d
Only log attester slashing found for valid slashings ( #5954 )
...
* Improve logging for slasher
* Add case for sig verify
* Log out indices for failed slashings
* gaz
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-22 10:19:10 -05:00
Victor Farazdagi
c875dd458b
Handles issue with empty dirs on validator accounts create ( #5940 )
...
* handles issue with empty dirs on validator accounts create
* better comments
* Merge refs/heads/master into fix-validator-accounts-create
* Merge refs/heads/master into fix-validator-accounts-create
* Terence's review
2020-05-22 11:00:41 +00:00
Nishant Das
6a9112bfae
remove byte mempool ( #5951 )
2020-05-21 20:39:06 -07:00
terence tsao
8eb7c7a0bc
Recover skipped archived point ( #5950 )
2020-05-21 18:15:16 -07:00
Ivan Martinez
4fb3307de3
Add Slasher double block detection to E2E ( #5936 )
...
* WIP double block slashings e2e
* Add double block detection to E2E
* Remove unused function
* Respond to feedback
* Remove unneeded util
* Merge branch 'master' of github.com:prysmaticlabs/prysm into e2e-double-block
* Add comments for clarity on conns
2020-05-21 06:02:40 +00:00
Raul Jordan
881ad77c52
Add Debug Block Endpoint + Return SSZ-Encoded ( #5926 )
...
* add block endpoint
* handle err
* check for nil block
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-20 20:36:05 -05:00
terence tsao
52988a0805
Return err instead of 0 for unavailable participation ( #5934 )
...
* Return err for unavailable participation
* Update test
2020-05-20 18:47:40 -04:00
Ivan Martinez
5267fe607c
Fix slasher pool to not ignore valid slashings ( #5927 )
...
* Improve slashing pool handling to not reject valid slashings
* Undo testing stuff
* Merge refs/heads/master into fix-slasher-pool
* Add regression test for pool changes
* Merge branch 'fix-slasher-pool' of github.com:prysmaticlabs/prysm into fix-slasher-pool
* Merge refs/heads/master into fix-slasher-pool
* Merge refs/heads/master into fix-slasher-pool
* Merge refs/heads/master into fix-slasher-pool
* Merge refs/heads/master into fix-slasher-pool
* Merge refs/heads/master into fix-slasher-pool
2020-05-20 20:27:23 +00:00
Ivan Martinez
9fc6be8b74
Change ListIndexedAttestations to be more slasher friendly ( #5930 )
...
* Improve slasher beacon comms
* Fixes
* Add case for normal errors
* remove baz
* Merge branch 'master' into improve-slasher-beacon
* Merge refs/heads/master into improve-slasher-beacon
* Merge refs/heads/master into improve-slasher-beacon
* Feedback
* Merge branch 'improve-slasher-beacon' of github.com:prysmaticlabs/prysm into improve-slasher-beacon
* Merge refs/heads/master into improve-slasher-beacon
2020-05-20 19:52:18 +00:00
terence tsao
5f72d28057
Blockchain service provides IsCanonical
getter ( #5932 )
...
* Export `NonExistentNode` and `Root`
* Add mapping `recentCanonicalBlocks`
* Add `updateRecentCanonicalBlocks`
* Use `updateRecentCanonicalBlocks`
* New tests
* s/Root/root
* Lint
* Merge branch 'master' into is-canonical
* Merge refs/heads/master into is-canonical
2020-05-20 19:16:56 +00:00
Preston Van Loon
020c481a46
Enable domain data cache by default ( #5931 )
...
* Enable domain data cache by default
* Merge refs/heads/master into enable-domain-data-cache-by-default
2020-05-20 18:46:03 +00:00
Nishant Das
e3d07489dc
Fix Flags in Create Subcommand ( #5928 )
...
* fix flag parsing
* Merge branch 'master' of https://github.com/prysmaticlabs/geth-sharding into fixCreateconfig
* Merge refs/heads/master into fixCreateconfig
2020-05-20 18:19:30 +00:00
Nishant Das
49edcb099b
Log Active Validator Count ( #5923 )
...
* add more verbose deposit count
* Merge branch 'master' into addBetterCount
* Merge refs/heads/master into addBetterCount
* Update beacon-chain/powchain/log_processing.go
Co-authored-by: Shay Zluf <thezluf@gmail.com>
2020-05-20 16:24:51 +00:00
Shay Zluf
17169e5a2d
External slashing protection ( #5895 )
...
* slasher grpc client
* do not export
* slasher on a different package
* fix featureconfig
* change to rough time
* revert roughtime
* remove extra comma
* revert order change
* goimports
* fix comments and tests
* fix package name
* revert reorder
* comment for start
* service
* fix visibility
* external slasher validator protection implementation
* gaz
* fix comment
* add comments
* nishant feedback
* raul feedback
* preston feedback
* fix flags
* fix imports
* fix imports
* port 4002
* added tests
* fix log
* fix imports
* fix imports name
* raul feedback
* gaz
* terence comment
* change name
* runtime fixes
* add flag check
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-05-20 10:23:22 -05:00
Nishant Das
2de4f86277
Change To Debug Logs ( #5917 )
...
* debug
2020-05-20 04:57:24 +00:00
Raul Jordan
ea02edba29
Ensure We Use Request.Epoch in the Validator Duties Server Implementation ( #5913 )
...
* resolve bad epoch in duties
2020-05-19 21:26:14 +00:00