Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Genesis Initialization and Validity Spec Tests v0.8 #2941

Closed
wants to merge 335 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
335 commits
Select commit Hold shift + click to select a range
18332ad
Cache Shuffled Validator Indices (#2682)
terencechain May 30, 2019
a562ece
YAML shuffle tests for v0.6 (#2667)
shayzluf May 30, 2019
e099432
Remove Latest Block (#2721)
May 30, 2019
7d5e717
Fix Deposit Trie (#2686)
May 31, 2019
a685b46
Remove Committee Cache (#2729)
terencechain May 31, 2019
9d1989d
Benchmark Compute Committee (#2698)
terencechain May 31, 2019
d36019d
Fixed Skipped Attestation Tests (#2730)
terencechain May 31, 2019
5b46517
Optimize Shuffled Indices Cache (#2728)
terencechain May 31, 2019
988b1fb
Refactor Deposit Contract Test Setup (#2731)
nisdas May 31, 2019
085962a
change hash function (#2732)
nisdas May 31, 2019
2fb1f3d
Remove Deprecated Validator Protobuf (#2727)
0xKiwi May 31, 2019
901966c
Fix most of skipped tests (#2735)
0xKiwi Jun 2, 2019
5a04d0d
Cache Active Validator Indices, Count, and Balances (#2737)
terencechain Jun 4, 2019
cd1033c
Optimize Base Reward Calculation (#2753)
terencechain Jun 4, 2019
f4ebbff
removed deprecated configs (#2755)
terencechain Jun 5, 2019
60aba6c
Optimize Process Eth1 Data Vote (#2754)
terencechain Jun 5, 2019
ed2fadc
Cleanup and Docs update (#2756)
Jun 5, 2019
ebc0d67
Add graffiti and update generate seed (#2759)
Jun 6, 2019
71eea35
Benchmark Process Block with Attestations (#2758)
terencechain Jun 6, 2019
5f1ec70
Tidying up Godoc for Core Package (#2762)
terencechain Jun 6, 2019
7d1b304
Clean up Old RPC Endpoints (#2763)
terencechain Jun 7, 2019
508c36a
Update RPC end point for Proposer (#2767)
terencechain Jun 9, 2019
6fcf25c
Update attesting indices v0.6 (#2449)
shayzluf May 7, 2019
d77c3e2
Implement Justification and finalization Processing (#2448)
terencechain May 7, 2019
129762a
Add convert to indexed (#2519)
shayzluf May 8, 2019
1c0aa94
changes name to signature (#2535)
nisdas May 8, 2019
6a26fb2
update registry updates func (#2521)
shayzluf May 9, 2019
cb63eca
Update Committee Helpers to v0.6.0 (#2398)
0xKiwi May 13, 2019
67902e1
Update Committee Helper Part 2 (#2592)
terencechain May 15, 2019
57bc107
Implement Process Slashings for 0.6 (#2523)
terencechain May 15, 2019
c774917
Update Proposer/Attester Slashings and Slashing Helpers (#2603)
rauljordan May 15, 2019
dc3e73e
Implement Final Updates 0.6 (#2562)
terencechain May 15, 2019
07b5e52
Update Reward Helper v0.6 (#2470)
terencechain May 15, 2019
233adc9
update to new spec (#2614)
shayzluf May 16, 2019
3e63695
Update Block Processing Voluntary Exits (#2609)
rauljordan May 16, 2019
e181666
Update processEth1Data for v0.6 (#2516)
cyberbono3 May 16, 2019
b26fe09
Clean up Helper Functions Part 1 (#2612)
terencechain May 17, 2019
b09ecec
Finalize helper functions for 0.6 (#2632)
terencechain May 17, 2019
86ff173
Process Beacon Chain Transfers v0.6 (#2642)
rauljordan May 18, 2019
744affa
Implement Process Crosslink From 0.6 (#2460)
terencechain May 18, 2019
7beeec4
Process Block Eth1 Data v0.6 (#2645)
rauljordan May 19, 2019
ddf7a96
Get attestation data slot v0.6 (#2593)
cyberbono3 May 19, 2019
67878ec
Process Block Deposits v0.6 (#2647)
rauljordan May 19, 2019
d21dbca
Implement Crosslink Delta Rewards for 0.6 (#2517)
terencechain May 19, 2019
9ecd5d4
add ProcessBlockHeader v0.6 (#2534)
shayzluf May 20, 2019
53dcc5e
Add Process Registry for Epoch Processing (#2668)
terencechain May 21, 2019
c504931
Follow up on process block header v0.6 (#2666)
rauljordan May 21, 2019
518e129
Putting Crosslink Delta Back (#2654)
terencechain May 21, 2019
f747de5
Implement Attestation Delta for v0.6 (#2646)
terencechain May 21, 2019
5c1410b
Implement process_rewards_and_penalties for 0.6 (#2665)
terencechain May 21, 2019
ebff47b
Update Slot Processing and State Transition v0.6 (#2664)
rauljordan May 21, 2019
c25ed02
Implement Process Epoch for 0.6 (#2675)
terencechain May 24, 2019
66a922d
Update CommitteeAssignment (#2693)
terencechain May 26, 2019
1877c2e
cleaned up skipped tests for core processing (#2697)
terencechain May 26, 2019
52ef370
Process Block Attestations v0.6 (#2650)
rauljordan May 27, 2019
5fd97e9
Fixed Skipped Tests for RPC Server (#2712)
terencechain May 28, 2019
1318235
Remove Obsolete Deposit Proto Objects (#2673)
May 28, 2019
98f8331
Remove Deprecated Protobuf State Fields (#2713)
terencechain May 28, 2019
b0db321
Remove Deprecated Protobuf Crosslink/Slashing/Block Fields (#2714)
terencechain May 28, 2019
1cbe622
Remove Deprecated Beacon Block Proto Fields (#2717)
terencechain May 28, 2019
13c9432
Remove Deprecated Attestation Proto Fields (#2723)
terencechain May 29, 2019
1fb0263
Cache Shuffled Validator Indices (#2682)
terencechain May 30, 2019
ee3a388
YAML shuffle tests for v0.6 (#2667)
shayzluf May 30, 2019
d29a2be
Remove Latest Block (#2721)
May 30, 2019
0f43b26
Fix Deposit Trie (#2686)
May 31, 2019
013aee6
Remove Committee Cache (#2729)
terencechain May 31, 2019
d9a109a
Benchmark Compute Committee (#2698)
terencechain May 31, 2019
87ff6a0
Fixed Skipped Attestation Tests (#2730)
terencechain May 31, 2019
94cb85d
Optimize Shuffled Indices Cache (#2728)
terencechain May 31, 2019
ae11795
Refactor Deposit Contract Test Setup (#2731)
nisdas May 31, 2019
0c33dc4
change hash function (#2732)
nisdas May 31, 2019
b88d7a8
Remove Deprecated Validator Protobuf (#2727)
0xKiwi May 31, 2019
b899305
Fix most of skipped tests (#2735)
0xKiwi Jun 2, 2019
76fa1e5
Optimize Base Reward Calculation (#2753)
terencechain Jun 4, 2019
8373d75
removed deprecated configs (#2755)
terencechain Jun 5, 2019
3485797
Optimize Process Eth1 Data Vote (#2754)
terencechain Jun 5, 2019
82dc94e
Cleanup and Docs update (#2756)
Jun 5, 2019
4a0b371
Add graffiti and update generate seed (#2759)
Jun 6, 2019
32975ba
Benchmark Process Block with Attestations (#2758)
terencechain Jun 6, 2019
da0e6bb
Tidying up Godoc for Core Package (#2762)
terencechain Jun 6, 2019
f2c3100
Clean up Old RPC Endpoints (#2763)
terencechain Jun 7, 2019
0b47674
Update RPC end point for Proposer (#2767)
terencechain Jun 9, 2019
ccbe072
Merge remote-tracking branch 'remotes/origin/master' into fixMess
nisdas Jun 9, 2019
bf441a8
Cache Active Validator Indices, Count, and Balances (#2737)
terencechain Jun 4, 2019
185dade
Update Deposit Contract (#2648)
nisdas May 24, 2019
76a2120
Update Shard Helpers for 0.6 (#2497)
terencechain May 14, 2019
4e82811
Update Genesis State Function to v0.6 (#2465)
nisdas May 6, 2019
e3d4cff
lint
nisdas Jun 9, 2019
0e035c7
regen protos and mocks
nisdas Jun 9, 2019
03abcd5
regenerated protos
terencechain Jun 9, 2019
f01dc69
started fixing core
terencechain Jun 9, 2019
eb76044
all core tests passing!
terencechain Jun 9, 2019
8b2184d
removed shared/forkutils
terencechain Jun 9, 2019
bd0f182
started fixing blockchain package
terencechain Jun 9, 2019
7a0f4c0
lint
nisdas Jun 10, 2019
26d2755
updating rpc package
nisdas Jun 10, 2019
d9719b2
add back deleted stuff
nisdas Jun 10, 2019
df00a73
add back deleted stuff that was deleted accidentally
nisdas Jun 10, 2019
ca427dc
add back protos and mocks
nisdas Jun 10, 2019
8d9960d
fix errors
nisdas Jun 10, 2019
5f9c2ed
fix genesis issue
nisdas Jun 10, 2019
9798f83
fix genesis issue for slot ticker
nisdas Jun 10, 2019
d48e6b1
fix all genesis errors
nisdas Jun 10, 2019
3c6c3b9
fix build files
nisdas Jun 10, 2019
3411cb9
temp change for go-ssz
nisdas Jun 10, 2019
64162a5
fix test
nisdas Jun 10, 2019
01c646b
Revert "temp change for go-ssz"
nisdas Jun 10, 2019
fda0310
update to latest go-ssz
nisdas Jun 10, 2019
69d1cb4
Merge remote-tracking branch 'origin/new-v0.6' into spec-v0.6
prestonvanloon Jun 10, 2019
5bb7ad3
Merge branch 'master' into spec-v0.6
prestonvanloon Jun 10, 2019
5ff4139
unstaged changes
prestonvanloon Jun 10, 2019
5217749
Merge branch 'master' into spec-v0.6
prestonvanloon Jun 10, 2019
f02afa2
Update Attester Server RPC Calls (#2773)
terencechain Jun 11, 2019
d07ed64
Update config and function parameters to v0.7 (#2791)
Jun 12, 2019
8078917
Minor Updates to 0.7 (#2795)
terencechain Jun 12, 2019
2dfc2de
Merge branch 'master' of github.com:prysmaticlabs/prysm into spec-v0.6
prestonvanloon Jun 12, 2019
ae0a501
Refactor Deposit Flow and Cleanup Tests (#2788)
0xKiwi Jun 13, 2019
b2ddee1
Optimize Committee Assignment RPC (#2787)
terencechain Jun 17, 2019
eecec35
Merge branch 'master' into spec-v0.6
rauljordan Jun 17, 2019
55ea830
Update BlockRoot to BlockHash (#2816)
terencechain Jun 18, 2019
f61688a
Fix Final Missing Items in Block Processing v0.6 (#2710)
rauljordan Jun 18, 2019
7563db0
Add Config YAML for Spec Tests (#2818)
Jun 18, 2019
06d1161
Merge branch 'master' of github.com:prysmaticlabs/prysm into spec-v0.6
prestonvanloon Jun 18, 2019
882d067
Align Protobuf Type Names (#2825)
terencechain Jun 19, 2019
650383d
gofmt
prestonvanloon Jun 19, 2019
b4b00fd
Revert "Align Protobuf Type Names (#2825)" (#2827)
terencechain Jun 19, 2019
35b67a3
Update Domain Related Functions (#2832)
terencechain Jun 20, 2019
7fb2ebf
Add Functions for Compressed and Uncompressed HashG2 With Domain (#2833)
Jun 21, 2019
ea9de68
Revert "Add Functions for Compressed and Uncompressed HashG2 With Dom…
prestonvanloon Jun 21, 2019
540b568
Add ConvertToPb to package testutil (#2838)
terencechain Jun 22, 2019
1def1d8
Block Processing Bug Fixes (#2836)
terencechain Jun 23, 2019
2b20455
Update types PB with Size Tags (#2840)
terencechain Jun 23, 2019
4a487fc
sync with master
terencechain Jun 24, 2019
85ae648
Merge branch 'master' into spec-v0.6
terencechain Jun 24, 2019
c6f119b
Epoch processing spec tests (#2814)
terencechain Jun 24, 2019
f59563c
Remove Deposit Index (#2851)
Jun 25, 2019
c081179
Shuffle tests revisited (#2829)
shayzluf Jun 25, 2019
12bc617
SSZ compatibility test for protobufs (#2839)
terencechain Jun 25, 2019
bfd50c3
update workspace spec sha
prestonvanloon Jun 25, 2019
d4be71c
remove yamls from branch
prestonvanloon Jun 25, 2019
7bc42b3
BLS spec tests (#2826) (#2856)
Jun 25, 2019
e083bb5
Merge branch 'master' into spec-v0.6
Jun 25, 2019
50eae63
Slot processing spec test (#2813)
terencechain Jun 25, 2019
50e63f0
eth1data rpc endpoint (#2733)
shayzluf Jun 26, 2019
5989165
Attesting Indices Fix (#2862)
nisdas Jun 26, 2019
816d14f
removed old chaintest, simulated backend and state generator (#2863)
terencechain Jun 26, 2019
c5a4778
Block Processing Sanity Spec Tests (#2817)
Jun 29, 2019
b87b730
Mutation testing fixes for beacon-chain/core/helpers/attestation.go (…
prestonvanloon Jun 29, 2019
db5463e
Add some fixes for mutation testing on blocks.go (#2869)
prestonvanloon Jun 29, 2019
697a3dc
Merge branch 'master' of github.com:prysmaticlabs/prysm into spec-v0.6
prestonvanloon Jun 30, 2019
237f0db
Fix sizes
prestonvanloon Jun 30, 2019
2308105
gaz
prestonvanloon Jun 30, 2019
74a2198
Spec freeze release candidate spectests
prestonvanloon Jun 30, 2019
06aae90
Align Protobuf Type Names (#2872)
terencechain Jun 30, 2019
4b94d88
Removes some deprecated fields from protobuf (#2877)
prestonvanloon Jul 1, 2019
059c1da
Update Configs for Freeze (#2876)
terencechain Jul 1, 2019
8b024d5
Mutation testing fixes for beacon-chain/core/helpers/committee.go (#2…
prestonvanloon Jul 1, 2019
878540b
update readme target
prestonvanloon Jul 1, 2019
d3cbad3
update latest sha for spec tests
prestonvanloon Jul 1, 2019
69e46a9
fix build
prestonvanloon Jul 1, 2019
5af9774
Update State Transition Function (#2867)
terencechain Jul 1, 2019
de5df51
Change Base Reward Factor (#2888)
nisdas Jul 1, 2019
61fafd0
Update Freeze Spec Simplification Section - part 1 (#2893)
terencechain Jul 1, 2019
2d09a1e
Update justification bits (#2894)
prestonvanloon Jul 1, 2019
24f630d
updated all the helper pseudocodes (#2895)
terencechain Jul 2, 2019
f612b81
Make Constants Explicit and Minor Cleanups (#2898)
0xKiwi Jul 2, 2019
4ba541d
Move Block Operation Length Checks to ProcessOperations (#2900)
0xKiwi Jul 2, 2019
be35f02
reorder proto fields (#2902)
terencechain Jul 3, 2019
79c7307
Slashing Penalty Calculation Change (#2889)
nisdas Jul 3, 2019
5cd9b60
genesis change
shayzluf Jul 3, 2019
aeb978a
integrate changes
shayzluf Jul 3, 2019
039a04c
bodyroot
shayzluf Jul 3, 2019
1971911
remove unused code
shayzluf Jul 3, 2019
8674cc3
Implement Compact Committee Root (#2897)
nisdas Jul 3, 2019
3cb5203
Remove deprecated fields from attestation data (#2892)
prestonvanloon Jul 3, 2019
e7d914d
HasChainStarted
shayzluf Jul 4, 2019
bbb9180
added isValidGenesisState to ProcessLog
shayzluf Jul 4, 2019
fe63723
merge changes
shayzluf Jul 4, 2019
26c65ef
state fix
shayzluf Jul 4, 2019
fcdd766
fix gazelle
shayzluf Jul 4, 2019
17feb0a
uint64 timestamp
shayzluf Jul 4, 2019
2e145dd
Update Deposit Contract (#2903)
nisdas Jul 4, 2019
5ca431f
SetupInitialDeposits adds proof
shayzluf Jul 4, 2019
f8b35fd
merge changes
shayzluf Jul 4, 2019
813bec7
remove unneeded parts of test
shayzluf Jul 4, 2019
add9647
update WORKSPACE to use 0.8 spec tests
prestonvanloon Jul 4, 2019
064f6cb
Perform Mutesting in Helpers Package (#2912)
Jul 6, 2019
175ad3c
s/volundary/voluntary (#2914)
terencechain Jul 6, 2019
5ae7985
Update BLS Domain (#2916)
nisdas Jul 7, 2019
1cf1e08
Fix Spec tests (#2907)
nisdas Jul 7, 2019
8773bf8
Perform Mutesting in Epoch and State Packages (#2913)
Jul 7, 2019
4b4441e
done with updates (#2890)
terencechain Jul 8, 2019
9253610
deposithash
shayzluf Jul 8, 2019
c029fed
Add Max Size Tag for Protobuf Fields (#2908)
terencechain Jul 8, 2019
e9931a6
No more space between ssz-size numbers
terencechain Jul 8, 2019
320e7af
Regen pb.go
terencechain Jul 8, 2019
f34ef8c
Fixed a few incorrect proto fields (#2926)
terencechain Jul 8, 2019
1b0a124
merkleproof from spec utils
shayzluf Jul 9, 2019
4fca788
merge changes
shayzluf Jul 9, 2019
0902f98
Revert "merkleproof from spec utils"
nisdas Jul 9, 2019
64471f3
fix test failures
nisdas Jul 9, 2019
f89fdf0
chain started and hashtree root in tests
shayzluf Jul 9, 2019
af0d9d1
Update Validator Workflow (#2906)
terencechain Jul 9, 2019
e99bf64
simple eth2genesistime
shayzluf Jul 9, 2019
fb11c2e
eth2 genesis time
shayzluf Jul 9, 2019
0acf164
Justification spec tests (#2896)
prestonvanloon Jul 9, 2019
eb617c1
Merge branch 'spec-v0.6' of https://github.com/prysmaticlabs/prysm in…
shayzluf Jul 9, 2019
e4cc356
fix zero time
shayzluf Jul 9, 2019
4e0d31b
add comment
shayzluf Jul 9, 2019
d033bcd
remove eth1data and feedback
shayzluf Jul 9, 2019
a9d8872
update go-ssz
prestonvanloon Jul 9, 2019
c6372c1
Merge branch 'master' of github.com:prysmaticlabs/prysm into spec-v0.6
prestonvanloon Jul 9, 2019
af142a4
Fix SSZ Compatibility Test (#2924)
terencechain Jul 9, 2019
9eb22c4
delete unused file
prestonvanloon Jul 9, 2019
b926ae0
Update zero hash to sha256().digest() (#2932)
prestonvanloon Jul 10, 2019
18d7f90
Revert "Update zero hash to sha256().digest() (#2932)" (#2933)
nisdas Jul 10, 2019
afc2bad
Fix compress validator (#2936)
prestonvanloon Jul 10, 2019
9e589a6
build without the bytes test
prestonvanloon Jul 11, 2019
ee82699
try minimal
prestonvanloon Jul 11, 2019
b04d4c4
Block operations spec tests (#2828)
terencechain Jul 11, 2019
fbfbb12
update bazel jobs flag
prestonvanloon Jul 11, 2019
8b47f2a
update bazel jobs flag
prestonvanloon Jul 11, 2019
2b57cf3
Merge branch 'spec-v0.6' of github.com:prysmaticlabs/prysm into spec-…
prestonvanloon Jul 11, 2019
ec1aa89
satisfy deprecation warning
prestonvanloon Jul 11, 2019
58ca70a
Add ssz regression tests for investigation of test failures in PR #28…
prestonvanloon Jul 11, 2019
f743166
Merge branch 'spec-v0.6' of https://github.com/prysmaticlabs/geth-sha…
nisdas Jul 11, 2019
70ca4f8
fix build issues
nisdas Jul 11, 2019
a2bce84
main changes: add fields and methods to track active validator
nisdas Jul 11, 2019
4b735cd
gaz
nisdas Jul 11, 2019
ddbecc8
Epoch Process Slashings Spec Tests (#2930)
terencechain Jul 11, 2019
8b01ec7
fix test
nisdas Jul 11, 2019
921b565
Perform Mutesting In core/state Package (#2923)
0xKiwi Jul 11, 2019
7977f79
Merge branch 'spec-v0.6' of https://github.com/prysmaticlabs/geth-sha…
nisdas Jul 11, 2019
893af3e
fix more tests
nisdas Jul 11, 2019
e9b5a75
improve test utils
nisdas Jul 11, 2019
7c4b5eb
add backend service
prestonvanloon Jul 11, 2019
67c0834
Add ssz compatibility tests for signing root (#2931)
terencechain Jul 11, 2019
35de6cc
fix bes flag
prestonvanloon Jul 11, 2019
01fec45
shift spec method to state package, improve test setup
nisdas Jul 11, 2019
a46577f
fixed log processing tests
nisdas Jul 11, 2019
27702fb
remove log
nisdas Jul 11, 2019
fdde644
gaz
nisdas Jul 11, 2019
c8e13db
Merge branch 'spec-v0.6' of https://github.com/prysmaticlabs/geth-sha…
nisdas Jul 11, 2019
cd78895
fix invalid metric
nisdas Jul 11, 2019
1514f78
Final updates spec tests (#2901)
terencechain Jul 11, 2019
ac2b769
Merge branch 'spec-v0.6' into genesis_trigger
rauljordan Jul 11, 2019
5f9f496
Genesis trigger (#2905)
shayzluf Jul 11, 2019
3484bd1
include genesis initialization spec test
rauljordan Jul 11, 2019
5e7f2eb
Merge branch 'spec-v0.6' into genesis-spectest
rauljordan Jul 11, 2019
04103d1
properly construct eth1 deposit root
rauljordan Jul 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .buildkite-bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,30 @@
# across machines, developers, and workspaces.
#
# This config is loaded from https://github.com/bazelbuild/bazel-toolchains/blob/master/bazelrc/latest.bazelrc
build:remote-cache --remote_cache=remotebuildexecution.googleapis.com
build:remote-cache --tls_enabled=true
build:remote-cache --remote_cache=grpcs://remotebuildexecution.googleapis.com
build:remote-cache --remote_timeout=3600
build:remote-cache --auth_enabled=true
build:remote-cache --spawn_strategy=standalone
build:remote-cache --strategy=Javac=standalone
build:remote-cache --strategy=Closure=standalone
build:remote-cache --strategy=Genrule=standalone

# Build results backend.
build:remote-cache --bes_results_url="https://source.cloud.google.com/results/invocations/"
build:remote-cache --bes_backend=buildeventservice.googleapis.com
build:remote-cache --bes_timeout=60s
build:remote-cache --project_id=prysmaticlabs
build:remote-cache --bes_upload_mode=fully_async

# Prysm specific remote-cache properties.
build:remote-cache --disk_cache=
build:remote-cache --jobs=50
build:remote-cache --host_platform_remote_properties_override='properties:{name:\"cache-silo-key\" value:\"prysm\"}'
build:remote-cache --remote_instance_name=projects/prysmaticlabs/instances/default_instance

build:remote-cache --experimental_remote_download_outputs=minimal
build:remote-cache --experimental_inmemory_jdeps_files
build:remote-cache --experimental_inmemory_dotd_files

# Import workspace options.
import %workspace%/.bazelrc

Expand All @@ -31,5 +40,7 @@ build --curses=yes --color=yes
build --keep_going
build --test_output=errors
build --flaky_test_attempts=5
build --jobs=50
test --local_test_jobs=2
# Disabled race detection due to unstable test results under constrained environment build kite
# build --features=race
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Prysm: Ethereum 'Serenity' 2.0 Go Implementation

[![Build status](https://badge.buildkite.com/b555891daf3614bae4284dcf365b2340cefc0089839526f096.svg?branch=master)](https://buildkite.com/prysmatic-labs/prysm)
[![ETH2.0_Spec_Version 0.8.0](https://img.shields.io/badge/ETH2.0%20Spec%20Version-v0.8.0-blue.svg)](https://github.com/ethereum/eth2.0-specs/commit/8d324b7497bcb558e0183a30002d78d18704e3fa)
[![Discord](https://user-images.githubusercontent.com/7288322/34471967-1df7808a-efbb-11e7-9088-ed0b04151291.png)](https://discord.gg/KSA7rPr)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/prysmaticlabs/geth-sharding?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

Expand Down
53 changes: 40 additions & 13 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
name = "bazel_skylib",
Expand Down Expand Up @@ -46,6 +47,21 @@ http_archive(
url = "https://github.com/bazelbuild/rules_k8s/archive/60571086ea6e10b1ddd2512d5c0fd32d01fa5701.tar.gz",
)

# Override default import in rules_go with special patch until
# https://github.com/gogo/protobuf/pull/582 is merged.
git_repository(
name = "com_github_gogo_protobuf",
commit = "ba06b47c162d49f2af050fb4c75bcbc86a159d5c", # v1.2.1, as of 2019-03-03
patch_args = ["-p1"],
patches = [
"@io_bazel_rules_go//third_party:com_github_gogo_protobuf-gazelle.patch",
"//third_party:com_github_gogo_protobuf-equal.patch",
],
remote = "https://github.com/gogo/protobuf",
shallow_since = "1550471403 +0200",
# gazelle args: -go_prefix github.com/gogo/protobuf -proto legacy
)

load(
"@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
Expand Down Expand Up @@ -140,8 +156,8 @@ filegroup(
visibility = ["//visibility:public"],
)
""",
sha256 = "56847989737e816ab7d23f3bb2422347dfa81271bae81a94de512c01461fab25",
url = "https://github.com/prysmaticlabs/eth2.0-spec-tests/releases/download/v0.7.1/base64_encoded_archive.tar.gz",
sha256 = "4be3a1a065abd46534b5b67d77be76de6ce6dbed27bffe8fcf1b3b6f4a11d9d5",
url = "https://github.com/prysmaticlabs/eth2.0-spec-tests/releases/download/v0.8.0/base64_encoded_archive.tar.gz",
)

http_archive(
Expand All @@ -154,17 +170,6 @@ load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_depen

buildifier_dependencies()

http_archive(
name = "com_github_prysmaticlabs_go_ssz",
sha256 = "f6fd5d623a988337810b956ddaf612dce771d9d0f9256934c8f4b1379f1cb2f6",
strip_prefix = "go-ssz-2e84733edbac32aca6d47feafc4441e43b10047f",
url = "https://github.com/prysmaticlabs/go-ssz/archive/2e84733edbac32aca6d47feafc4441e43b10047f.tar.gz",
)

load("@com_github_prysmaticlabs_go_ssz//:deps.bzl", "go_ssz_dependencies")

go_ssz_dependencies()

go_repository(
name = "com_github_golang_mock",
commit = "51421b967af1f557f93a59e0057aaf15ca02e29c", # v1.2.0
Expand All @@ -186,6 +191,12 @@ go_repository(
vcs = "git",
)

go_repository(
name = "com_github_prysmaticlabs_go_ssz",
commit = "08374e459d08fc6abeb43011a206ad54602e71b6",
importpath = "github.com/prysmaticlabs/go-ssz",
)

go_repository(
name = "com_github_urfave_cli",
commit = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1", # v1.20.0
Expand Down Expand Up @@ -1103,3 +1114,19 @@ go_repository(
commit = "4afad1f6206cb9222914f2ec6ab9d0b414705c54",
importpath = "github.com/libp2p/go-eventbus",
)

go_repository(
name = "in_gopkg_d4l3k_messagediff_v1",
commit = "29f32d820d112dbd66e58492a6ffb7cc3106312b",
importpath = "gopkg.in/d4l3k/messagediff.v1",
)

go_repository(
name = "com_github_prysmaticlabs_go_bitfield",
commit = "ec88cc4d1d143cad98308da54b73d0cdb04254eb",
importpath = "github.com/prysmaticlabs/go-bitfield",
)

load("@com_github_prysmaticlabs_go_ssz//:deps.bzl", "go_ssz_dependencies")

go_ssz_dependencies()
8 changes: 2 additions & 6 deletions beacon-chain/attestation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@ go_library(
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/attestation",
visibility = ["//beacon-chain:__subpackages__"],
deps = [
"//beacon-chain/cache:go_default_library",
"//beacon-chain/core/helpers:go_default_library",
"//beacon-chain/core/state:go_default_library",
"//beacon-chain/db:go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//shared/bitutil:go_default_library",
"//shared/bytesutil:go_default_library",
"//shared/event:go_default_library",
"//shared/hashutil:go_default_library",
"//shared/messagehandler:go_default_library",
"//shared/params:go_default_library",
"@com_github_gogo_protobuf//proto:go_default_library",
Expand All @@ -33,13 +29,13 @@ go_test(
srcs = ["service_test.go"],
embed = [":go_default_library"],
deps = [
"//beacon-chain/cache:go_default_library",
"//beacon-chain/internal:go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//shared/blockutil:go_default_library",
"//shared/bytesutil:go_default_library",
"//shared/hashutil:go_default_library",
"//shared/params:go_default_library",
"//shared/testutil:go_default_library",
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
],
Expand Down
Loading