Raul Jordan
b0dfc46603
Fix Up READMEs for Mainnet ( #7910 )
...
* fix up readmes
* Update README.md
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-23 18:47:55 +00:00
Nishant Das
8c3faaa4c7
Add Back Error/Debug Logs ( #7922 )
...
* add back logs
* add back string
* Reformat loggings
Co-authored-by: Terence Tsao <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-23 18:29:27 +00:00
Nishant Das
4c0db8bca4
Bake In Mainnet Bootnodes ( #7925 )
...
* add in bootnodes
* fix teku's bootnode
2020-11-23 17:19:35 +00:00
Raul Jordan
0c5c246ee7
Prysm Web V1 Release ( #7921 )
...
* even more cors
* auth fixes for web v1
* ensure web works
* include web ui v1 release
* new site data
* fmt
* test
* tests pass
* gaz
* build fix
* no ssz
* unused type
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-23 06:29:58 +00:00
dv8silencer
f871e1f3ef
Give error message if trying to import into non-imported wallet ( #7913 )
...
Co-authored-by: dv8silencer <15720668+dv8silencer@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-23 04:08:07 +00:00
Preston Van Loon
658dd95313
Add teku's bootnode ( #7919 )
...
* Add teku's bootnode
* Ignore mainnet config for TODO check
2020-11-23 01:20:55 +00:00
Preston Van Loon
57fe012bc2
P2P: Increase outbound message queue size to 256 ( #7916 )
2020-11-22 23:54:58 +00:00
Raul Jordan
d62420b940
More Default CORS Rules ( #7915 )
...
* even more cors
* terence feedback
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-22 23:10:21 +00:00
Preston Van Loon
11bbea2562
Use params network config as default bootstrap nodes and deposit contract ( #7904 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-22 21:22:44 +00:00
terence tsao
2172cd60a6
Update sync loggings ( #7914 )
2020-11-22 14:31:55 -06:00
Raul Jordan
2a546cc50b
Remove Deprecated Tooling ( #7912 )
...
* remove old tools
* tidy and gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-22 19:07:02 +00:00
terence tsao
7d0031ee77
Update boot node to not use pyrmont ( #7906 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-22 18:47:23 +00:00
pinglamb
acf49fb38f
Fix Alpine Docker Image ( #7883 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-22 18:04:13 +00:00
Raul Jordan
26658a9f1f
Add More Default CORS Domains to the gRPC Gateway ( #7901 )
2020-11-22 17:12:24 +00:00
Nishant Das
60d99c83eb
fix pending queue ( #7899 )
2020-11-22 08:42:27 -08:00
Alon Muroch
98557e8f5e
highest slashing attestation RPC endpoint ( #7647 )
...
* highest slashing attestation RPC endpoint
* slasher mock fix
* Update proto/slashing/slashing.proto
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* comments + small fixes
* PR review ctx comments and fixes
Co-authored-by: Shay Zluf <thezluf@gmail.com>
2020-11-22 08:51:20 +00:00
Preston Van Loon
1ba747b3c9
Change log from ERROR to DEBUG ( #7892 )
2020-11-21 23:14:19 -08:00
Preston Van Loon
71ec919306
RPC: healthz should return an error when the node is syncing ( #7890 )
...
* RPC: healthz should return an error when the node is syncing
* fix test
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-22 00:29:55 +00:00
Fabrice Cheng
34a26740ff
Change attestation signature error to DEBUG level ( #7891 )
2020-11-22 00:08:51 +00:00
Nishant Das
7e76b02bb7
Make Follow Distance Lookup Simpler ( #7884 )
...
* faster eth1 search
* simplify it much more
* Update beacon-chain/powchain/block_reader.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-21 22:03:16 +00:00
pinglamb
519b003fc3
Fix creation time of beacon-node, validator and slasher ( #7886 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-21 21:37:03 +00:00
Preston Van Loon
9a10462c64
p2p: return error when attempting to connect to a bad peer ( #7885 )
...
* return error when attempting to connect to a bad peer
* temporarily skip test
2020-11-21 20:09:07 +00:00
Nishant Das
ac60ff2bc2
Add Test For Earliest Voting Block ( #7882 )
2020-11-21 12:52:42 +00:00
Ivan Martinez
f8a855d168
Remove outdated code in accounts ( #7881 )
...
* Remove outdated test in accounts
* gaz
2020-11-21 11:15:44 +01:00
Preston Van Loon
74c7733abf
Fix spec diff with comments. Fixes #7856 ( #7872 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2020-11-21 06:12:47 +00:00
terence tsao
f63e89813d
Remove chain not started error ( #7879 )
...
* Remove chain not started error
* Add genesis state not created error
2020-11-21 01:28:55 +00:00
terence tsao
c021e2e8bc
Remove deprecated feature flags ( #7877 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-21 00:15:44 +00:00
Preston Van Loon
c3fc40907d
Fix potential panic with nil *big.Int ( #7874 )
...
* Fix potential panic with nil \*big.Int
* regression test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-20 23:09:02 +00:00
Shay Zluf
3fb78ff575
Verify GenesisValidatorRoot Matches the One in DB on Slashing Protection Import ( #7864 )
...
* Add GenValRoot dbs
* Test genvalroot
* Fix names
* Add overwrite rejection
* validate metadata genesis validator root
* remove env
* fix database functions
* fix tests
* raul feedback
Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-20 22:33:51 +00:00
Raul Jordan
7bd97546f0
Dynamic Reloading of Keys on Any FSNotify Event ( #7873 )
...
* dynamic import
* add tests
* spacing
2020-11-20 22:04:59 +00:00
Ivan Martinez
5140ceec68
Hotfix for WaitForChainStart GenesisValidatorsRoot Check ( #7870 )
...
* Hotfix for genesis val root
* Add regression test
* Fix error message
* Remove comments
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-20 20:53:12 +00:00
terence tsao
97ad5cd5fd
Reduce no attestation in pool to warn ( #7863 )
...
* Reduce no attestation in pool to warn
* Use NotFound
* Update validator/client/aggregate.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update validator/client/aggregate.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-11-20 12:17:26 -08:00
Ivan Martinez
4dc65c5787
Save GenesisValidatorsRoot from WaitForChainStart ( #7855 )
...
* Add GenValRoot dbs
* Test genvalroot
* Fix names
* Add overwrite rejection
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-11-20 18:06:12 +00:00
Roy
1b012ccfa5
Various Powershell Fixes ( #7854 )
...
* Remove incorrect x64 error message when showing usage description
* Add missing escape characters in usage description
The actual environment variable value would be printed without these
escape characters.
* Add missing quotation marks in usage description
* Also test existence of sha and signature files
For multiple reason the executable could be downloaded, but not the
signature files. Later on the script will error out because these files
are lacking.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-11-20 17:17:38 +00:00
Nishant Das
60cdd69b05
Update Gossipsub Parameters ( #7869 )
...
* add param and flag
* change back
2020-11-20 15:36:02 +00:00
Preston Van Loon
90a66df529
Update eth2 specs version badge in README ( #7865 )
2020-11-20 03:21:11 +00:00
Nishant Das
c4a1fe4d0d
Add Basic Support for IP Tracker ( #7844 )
...
* add basic support for ip tracker
* clean up
* check for it
* fix
* Update beacon-chain/p2p/peers/status.go
* fix
2020-11-19 12:54:19 +00:00
Nishant Das
8a256de2dd
Check Target Root Better ( #7837 )
...
* check better
* bring it down
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-19 11:13:54 +00:00
Nishant Das
c3451a6ce9
Cache ETH1 Headers When Requesting Logs ( #7861 )
...
* perform a quick patch
* perform a quick patch
* fix
* fix up
* Update beacon-chain/powchain/service.go
* start caching from here
* remove
* fix
2020-11-19 10:47:31 +00:00
terence tsao
4b6441f626
Pending block queue caching with TTL ( #7816 )
...
* Update pending blks queue to ttl one
* Update tests
* Comment
* Gazelle
* Fix fuzz
* More comments
* Fix fuxx import
* Nishant's feedback
* Happy lint
* Return error for len(blks) >= maxBlocksPerSlot
* Ensure proposer time conv
* don't use gcache's default exp time it's 0
* fix TestService_AddPeningBlockToQueueOverMax
* Update beacon-chain/sync/pending_blocks_queue.go
Co-authored-by: Nishant Das <nishdas93@gmail.com>
* Fix time conversion
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2020-11-19 05:15:58 +00:00
Nishant Das
eb7ab16f92
Change Back Metadata Error Check ( #7852 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-19 04:17:26 +00:00
Nishant Das
e6ecda5ebe
add check and test ( #7853 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2020-11-19 11:53:24 +08:00
Victor Farazdagi
095c4d5dd5
Peer status peer scorer ( #7480 )
...
* define and enforce minimum scorer interface
* better decoupling of multiple scorers in service
* removes redundant weight
* adds peer_status scorer
* minir re-arrangement
* rely on scorer in peer status service
* gazelle
* updates rpc_status
* fix build
* better interface verifying
* remove unnecessary locks
* mark todo
* simplify service
* remove redundant references
* avoid passing contexts
* remove unused context
* refactor errors to p2p package
* refactor goodbye codes into p2p
* simplify status api
* remove isbad method from peers
* update scoring service
* introduce validation error
* gazelle
* add score
* restore isbad method
* resolve dep cycle
* gazelle
* peer status scorer: test score calculation
* bad responses scorer: bad peer score
* remove redundant type checks
* pass nil config
* add rounding
* test IsBadPeer
* test bad peers list
* more tests
* check validation error on non-existent peer
* max peer slot -> highest peer slot
* remove redundant comment
* combine
* combine
* introduce var
* fix tests
* remove redundant update
* minor fix
* Nishant's suggestion
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-18 15:51:42 +00:00
Nishant Das
59d63087b1
Save Powchain Metadata To Disk On Chainstart ( #7850 )
...
* save to disk
* log error
2020-11-18 21:44:06 +08:00
Nishant Das
e1dd532af3
handle correctly ( #7851 )
2020-11-18 21:12:12 +08:00
Ivan Martinez
cfed4fa1b5
Remove listen for ChainStarted in WaitForChainStart ( #7849 )
...
* Remove GenValRoot from ChainStarted and remove ChainStarted from WaitForChainStart
* Fix test and add logs
2020-11-18 05:51:00 +00:00
Victor Farazdagi
7735a083b2
Extract common types from sync ( #7843 )
...
* extract common types from sync
* fix tests
* simplify
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-11-18 04:17:42 +00:00
Ivan Martinez
fec469291e
Add GenesisValidatorRoot to ChainStartResponse ( #7846 )
...
* Add genesis validator root to chainstartresposne
* Deps
* Tidy
* Fix tests
* Fix test
* Fix test and add to ChainStartedData
2020-11-17 20:15:48 -06:00
Shay Zluf
acb47f2920
Implement Standard Slashing Protection JSON With Importing Logic ( #7675 )
...
* Use new attestation protection
* tests fixes
* fix tests
* fix comment
* fix TestSetTargetData
* fix tests
* empty history handling
* fix another test
* mock domain request
* fix empty handling
* use far future epoch
* use far future epoch
* migrate data
* copy byte array to resolve sigbus error
* init validator protection on pre validation
* Import interchange json
* Import interchange json
* reduce visibility
* use return value
* raul feedback
* rename fixes
* import test
* checkout att v2 changes
* define import method for interchange format in its own package
* rename and made operations atomic
* eip comment
* begin amending test file
* finish happy path for import tests
* attempt the interchange import tests
* fixed tests
* happy and sad paths tested
* good error messages
* fix up comment with proper eip link
* tests for helpers
* helpers
* all tests pass
* proper test comment
* terence feedback
* validate metadata func
* versioning check
* begin handling duplicatesz
* handle duplicate public keys with potentially different data, first pass
* better handling of duplicate data
* ensure duplicates are taken care of
* comprehensive tests for deduplication of signed blocks
* tests for deduplication
* Update validator/slashing-protection/local/standard-protection-format/helpers_test.go
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* Update validator/slashing-protection/local/standard-protection-format/helpers_test.go
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* tests for maxuint64 and package level comment
* tests passing
* edge cases pass
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-11-17 22:37:43 +00:00
terence tsao
925fba0570
Validate beacon block in pending queue ( #7847 )
2020-11-17 13:50:51 -08:00