terence tsao
|
60003c481b
|
Add unlock to IsOptimistic returns (#10341)
* Add unlock to returns
* add regression test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
|
2022-03-11 10:36:47 +00:00 |
|
Potuz
|
b59484b285
|
Export SetOptimisticToInvalid (#10330)
* temp
* export remove invalid blocks
|
2022-03-09 13:50:57 -03:00 |
|
Potuz
|
57a323f083
|
Forkchoice featureflag (#10299)
* Compiling main beacon-chain binary
* Add feature flag
* passing protoarray tests
* passing nodetree tests
* passing blockchain package tests
* passing rpc tests
* go fmt
* re-export forkchoice store from blockchain package
* remove duplicated import
* remove unused var
* add nodetree rpc method
* remove slot from IsOptimisticForRoot
* release lock in IsOptimistic
* change package name
* Revert "change package name"
This reverts commit 679112f9ef795922c631e7823dbdfb3746838f3c.
* rename package
* Update doc
* Fix span names
* Terence + Raul review
* remove go:build flags
* add errors dep
* spec tests
* fix call to IsOptimisticForRoot
* fix test
* Fix conflict
* change name of function
* remove ctx from store.head
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
|
2022-03-09 03:05:51 +00:00 |
|
terence tsao
|
a9a75e0004
|
Release lock before return validatedTips (#10289)
* Release lock before return
* add test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
|
2022-03-01 15:36:47 +00:00 |
|
Potuz
|
6a2ef13b87
|
add metrics for synced tips (#10221)
* add metrics for synced tips
* Update beacon-chain/forkchoice/protoarray/metrics.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
|
2022-02-10 18:48:46 +00:00 |
|
Potuz
|
5f8b01ccda
|
Make UpdateSyncedTips safe for context cancellation (#10174)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
|
2022-02-09 14:54:27 +00:00 |
|
Potuz
|
aeb6940935
|
Prune synced tips (#10143)
* Prune synced tips
* Terence's minor cleanups
* Update optimistic_sync.go
* go fmt
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
|
2022-02-05 20:24:02 +00:00 |
|
Potuz
|
4020a603b6
|
Invalid synced tips (#10154)
* add synced_tips structure
* create optimisticStore type
* Add UpdateSyncedTips
* use context
* update comment
* use better context cancellation
* reinsert removed error from different PR
* Minor clean ups
* remove invalid nodes from forkchoice
* Update beacon-chain/forkchoice/protoarray/optimistic_sync.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Add check for tip status
* Terence's minor cleanups
* Potus' feedbacks
* Update optimistic_sync.go
* Add erorr
* Synced
* update weights
* Add context error check
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
|
2022-02-03 22:57:15 +00:00 |
|
Potuz
|
26ec352bdc
|
Update synced tips (#10129)
* add synced_tips structure
* create optimisticStore type
* Add UpdateSyncedTips
* use context
* update comment
* use better context cancellation
* reinsert removed error from different PR
* Minor clean ups
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
|
2022-01-31 15:05:05 +00:00 |
|
Potuz
|
f0fd29d367
|
Is optimistic (#10124)
* add synced_tips structure
* create optimisticStore type
* Add ForkChoice.Optimistic()
Adds the logic implementing whether a synced block is optimistic or not.
* Terence's bug catch
* Reinforce warning
* Preston's review
* add comment on optimistic sync
|
2022-01-26 01:42:18 +00:00 |
|