Commit Graph

1747 Commits

Author SHA1 Message Date
Nishant Das
6d69ac1abd
Add State Generator (#1718)
* add finalized function

* add functions

* gazelle

* add separate package for import cycles

* main tests are passing

* add finalized state test

* add block test

* fix tests and gazelle

* lint

* build file

* remove package

* remove unecessary method

* visibility

* remove package

* comments

* final comments

* imports spacing

* goimports
2019-03-07 11:02:47 +08:00
terence tsao
23e2dd65a3
Sync Drops Attestations < 1 Epoch Length (#1917) 2019-03-06 18:48:32 -06:00
Preston Van Loon
018f200ce9
Fix attestations again (#1916) 2019-03-06 18:59:47 -05:00
Raul Jordan
728c9fbfdc
fix the wait for activation condition (#1915) 2019-03-06 17:16:06 -06:00
Preston Van Loon
dbb519880f
Fix off by one edge case for pending attestations (#1914)
* fix off by one error

* better plus one

* lint

* fix off by one
2019-03-06 17:03:31 -06:00
terence tsao
936c4dde77
Implement AttestationTargets for ForkChoice (#1912) 2019-03-06 15:03:52 -06:00
Preston Van Loon
34f0241f32
Fix wait for activation (#1913)
* fix but no test

* ensure a canonical state is sent
2019-03-06 15:13:09 -05:00
Preston Van Loon
869f08ad26
Proposer Service: Only return attestations within the last epoch (#1911)
* Only return attestations within the last epoch

* make array

* rename for clarity
2019-03-06 11:54:02 -05:00
terence tsao
ddcb92c549
Discard Attestations Older Than Prev Epoch Start Slot (#1905) 2019-03-05 21:27:28 -08:00
Preston Van Loon
eda03ff767
Recover from a panic in p2p (#1906)
* recover from a panic in p2p

* Add safely process function

* print proto message

* add status to the span, if available

* add status to the span, if available
2019-03-05 23:57:44 -05:00
Preston Van Loon
f108767570
Big update renovate (#1907)
* Update dependency com_github_spf13_cobra to v0.0.3

* Update dependency com_github_allegro_bigcache to v1

* Update dependency com_github_hashicorp_go_multierror to v1

* Update dependency com_github_x_cray_logrus_prefixed_formatter to v0.5.2

* Update dependency com_github_fd_go_nat to v1

* Update dependency com_github_matttproud_golang_protobuf_extensions to v1

* Update libp2p

* Update dependency com_github_sirupsen_logrus to v1

* Update dependency com_github_spf13_pflag to v1

* Update dependency com_github_urfave_cli to v1

* Update dependency in_gopkg_yaml_v2 to v2

* Update libp2p
2019-03-05 23:48:32 -05:00
renovate[bot]
4f957eb0aa Update libp2p (#1904) 2019-03-05 20:40:01 -08:00
Raul Jordan
44edbd4fbc
Validator Client WaitForActivation Implementation (#1898)
* create wait for activation stream

* wait for activation server stream open

* complete server side logic

* formatting

* first test passing

* context closed test

* lint

* fix build failure

* imports

* implemented wait for activation on client side

* all tests pass for validator client

* weird spacing
2019-03-05 18:09:41 -06:00
terence tsao
b6ad702f3f update beacon chain spec link (#1897) 2019-03-05 18:54:58 -05:00
Raul Jordan
c22e4dc2ae
Wait for Validator Activation Stream Server (#1896)
* create wait for activation stream

* wait for activation server stream open

* complete server side logic

* formatting

* first test passing

* context closed test

* lint

* fix build failure

* imports

* eliminate unused cancel var
2019-03-05 17:06:50 -06:00
Raul Jordan
aebb523bca
Request Block Parent If Not Found During Regular Sync (#1892)
* logic for requesting missing block parent

* rearrange block parent fetch logic

* reorder logic

* tests pass

* gazelle

* typo

* weird spacing

* imports
2019-03-05 16:39:44 -06:00
terence tsao
d8da9757d8
Add Spans for Epoch Processing (#1895) 2019-03-05 14:18:07 -08:00
Preston Van Loon
2a7d9e157c
currently connected peers (#1893) 2019-03-05 15:20:47 -06:00
terence tsao
cf54bc794b Add Spans for Processing Block (#1894)
* add spans for processing slot

* gaz

* rm main

* added spans for block processing
2019-03-05 15:09:50 -06:00
Preston Van Loon
23d5b5f0fa
Set Eth1FollowDistance to 16 for demo (#1891) 2019-03-05 14:42:18 -06:00
terence tsao
ef54152071 Add Spans for Processing Slots (#1890)
* add spans for processing slot

* gaz

* rm main
2019-03-05 14:22:09 -06:00
Preston Van Loon
ee1d1ce271
Renovate updates (#1887)
* Update dependency com_github_libp2p_go_libp2p_autonat to v0.0.1

* Update dependency com_github_libp2p_go_libp2p_blankhost to v0.0.1

* Update dependency com_github_spf13_cobra to v0.0.3

* Update dependency com_github_allegro_bigcache to v1

* Update dependency com_github_hashicorp_go_multierror to v1

* Update dependency com_github_x_cray_logrus_prefixed_formatter to v0.5.2

* Update dependency com_github_fd_go_nat to v1

* Update dependency com_github_matttproud_golang_protobuf_extensions to v1

* Update dependency com_github_libp2p_go_libp2p_kbucket to v0.1.0

* Update dependency io_opencensus_go to v0.19.1

* Update dependency com_github_miekg_dns to v1

* Update dependency com_github_mr_tron_base58 to v1

* Update dependency com_github_opentracing_opentracing_go to v1

* Update dependency com_github_pborman_uuid to v1

* Update dependency com_github_prometheus_prometheus to v2

* Update dependency com_github_satori_go_uuid to v1
2019-03-05 13:55:43 -05:00
Preston Van Loon
c6f90f77c6
group libp2p packages into a single PR (#1888) 2019-03-05 13:41:42 -05:00
Nishant Das
07a25ca710 Adding Prometheus Metrics and Tracing to Sync (#1858)
* adding tracing and metrics

* clean up main routine

* added tracing to initial sync

* gazelle

* fix tests

* fix naming

* comments

* consistent style in promauto counters

* rename spans

* final comment
2019-03-05 11:31:19 -06:00
Nishant Das
b264cdc557 Allow Node to Request State if it is Behind (#1875)
* fix naming

* comment

* tests
2019-03-05 10:59:49 -06:00
terence tsao
3f9124b30c
minus genesis epoch (#1886) 2019-03-05 07:51:13 -08:00
Preston Van Loon
81ecbf5f16 Set renovate limits to unlimited (#1884)
* Set renovate limits to unlimited

* Update renovate.json

* Update renovate.json
2019-03-05 22:13:22 +08:00
Nishant Das
612252cd42 Update Renovate (#1878)
* Update dependency com_github_libp2p_go_libp2p_autonat to v0.0.1

* Update dependency com_github_libp2p_go_libp2p_blankhost to v0.0.1

* Update dependency com_github_spf13_cobra to v0.0.3

* Update dependency com_github_allegro_bigcache to v1

* Update dependency com_github_hashicorp_go_multierror to v1

* Update dependency com_github_x_cray_logrus_prefixed_formatter to v0.5.2

* Update dependency com_github_fd_go_nat to v1

* Update dependency com_github_matttproud_golang_protobuf_extensions to v1

* Update dependency com_github_libp2p_go_libp2p_kbucket to v0.1.0

* Update dependency io_bazel_rules_go to v0.18.0

* Update dependency io_opencensus_go to v0.19.1

* Update dependency com_github_miekg_dns to v1

* Update dependency com_github_mr_tron_base58 to v1
2019-03-05 05:03:26 -08:00
terence tsao
dd40320a1c Save and Delete Validators Pubkey - Idx Post Chainstart (#1873)
* starting tests

* added tests

* fixed comments

* gaz

* make sure key is using EntryExitEffectEpoch
2019-03-05 15:22:15 +08:00
Preston Van Loon
9999b3280a
Use promauto to automatically register metrics (#1872)
* Use promauto to automatically register metrics

* sub genesis slot
2019-03-04 21:38:03 -05:00
Nishant Das
d162b5603e clean up context (#1850) 2019-03-04 12:57:59 -08:00
skillful-alex
4194d78bed Add Web3Service Health Checks. (Issue #1204) (#1581)
* described the Status () function

* web3 service health checks

* remove method LatestBlockTime and add tests

* remove lastHeadInteractTime

* corrected conflicts of different branches of development

* goimports -w beacon-chain/powchain/service_test.go
2019-03-04 15:37:24 -05:00
renovate[bot]
55c31a4a6d Update dependency com_github_matttproud_golang_protobuf_extensions to v1 (#1869) 2019-03-04 15:27:38 -05:00
Preston Van Loon
6af522986e
Enable POW chain by default (#1861)
* enable POW chain by default

* fix tests in node.go

* ignore ctx
2019-03-04 15:10:03 -05:00
Preston Van Loon
76d37ddc4a Update renovates (#1865) 2019-03-04 06:35:31 -08:00
renovate[bot]
730d509edf Update dependency com_github_fd_go_nat to v1 (#1852) 2019-03-04 08:54:34 -05:00
renovate[bot]
db58870525 Update dependency com_github_x_cray_logrus_prefixed_formatter to v0.5.2 (#1848) 2019-03-04 08:32:46 -05:00
renovate[bot]
131f671063 Update dependency com_github_boltdb_bolt to v1 (#1851) 2019-03-04 08:30:21 -05:00
renovate[bot]
45e95728d3 Update com_github_atlassian_bazel_tools commit hash to 02472d8 (#1855) 2019-03-04 05:07:21 -08:00
renovate[bot]
2bfb0590bd Update dependency com_github_hashicorp_go_multierror to v1 (#1860) 2019-03-04 04:47:50 -08:00
terence tsao
eb9d4a630b add metrics for justification and finalization (#1854) 2019-03-03 22:53:20 -08:00
terence tsao
b00891880e
Implement Validator Status RPC Methods (#1839) 2019-03-03 21:28:00 -08:00
renovate[bot]
b6bc380f4a Update dependency com_github_allegro_bigcache to v1 (#1849) 2019-03-03 22:35:25 -05:00
renovate[bot]
bf7cbee24a Update dependency com_github_spf13_cobra to v0.0.3 (#1846) 2019-03-03 21:36:00 -05:00
Raul Jordan
0ce7c8c599
remove old timestamp error log (#1807) 2019-03-03 15:26:59 -08:00
terence tsao
17682321fe
Clean Up Validator RPC Server (#1798) 2019-03-03 14:55:12 -08:00
Ivan Martinez
5aa7320507 Clear Up Code Inconsistencies (#1836) 2019-03-03 09:31:29 -08:00
Nishant Das
fe2eb5a812 Fixing Sync (#1830)
* fix querier

* new fixes for sync

* reducing batch size and adding equality condition

* remove commented code

* fix test

* fix few more tests
2019-03-03 11:03:47 -06:00
Preston Van Loon
f09c66035b
add slot metric (#1815) 2019-03-03 08:18:27 -05:00
Preston Van Loon
f5aed821a6 Set static to off for cgo built beacon-chain (#1813)
* Update BUILD.bazel

* gazelle
2019-03-02 23:49:27 -08:00