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

proto: migrate x/distr to use hybrid codec #5610

Merged
merged 54 commits into from
Feb 11, 2020
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
dec703b
Migrate staking types to proto
alexanderbez Feb 1, 2020
31311cb
Use int32 for validator status
alexanderbez Feb 3, 2020
0d2938b
Update staking types
alexanderbez Feb 3, 2020
60dc367
Add benchmarks for bech32 pubkey funcs
alexanderbez Feb 3, 2020
f0f6f50
Update BondStatus type alias to int32
alexanderbez Feb 3, 2020
c268a9e
Remove PubKey proto type
alexanderbez Feb 3, 2020
95edc79
Fix unit test
alexanderbez Feb 3, 2020
46be4b4
Update staking keeper
alexanderbez Feb 3, 2020
7503396
Fix staking keeper tests
alexanderbez Feb 3, 2020
97ac0b5
Update query client
alexanderbez Feb 3, 2020
8e84801
Update staking genesis and app_test
alexanderbez Feb 3, 2020
c35939a
Update staking handler
alexanderbez Feb 4, 2020
febaae8
Use Int64Value instead of IntProto
alexanderbez Feb 4, 2020
5b83d9b
Updates tests and APIs
alexanderbez Feb 4, 2020
0a904f1
Fix iteration
alexanderbez Feb 4, 2020
1ee4527
proto: move distr over to proto
tac0turtle Feb 4, 2020
7fb0d34
proto: some more types to proto
tac0turtle Feb 4, 2020
6dc3dd9
fix protolinting
tac0turtle Feb 4, 2020
2450409
Linting
alexanderbez Feb 4, 2020
1ce8248
minor reading, will wait on staking pr to be merged
tac0turtle Feb 4, 2020
97148e2
Fix linting
alexanderbez Feb 4, 2020
da9d51f
Merge branch 'master' into bez/5444-staking-proto-enc
alexanderbez Feb 4, 2020
11a0d8b
Add changelog entry
alexanderbez Feb 4, 2020
db45cfc
Update changelog entry
alexanderbez Feb 4, 2020
c5a7baa
Merge branch 'master' into bez/5444-staking-proto-enc
alexanderbez Feb 4, 2020
6140d37
Merge branch 'bez/5444-staking-proto-enc' into proto/distr
tac0turtle Feb 5, 2020
d0b2786
referencing types
tac0turtle Feb 5, 2020
c68058d
change some types to proto
tac0turtle Feb 5, 2020
37bc9c4
make it build, kinda
tac0turtle Feb 5, 2020
8c2431a
its alive
tac0turtle Feb 6, 2020
bdf9455
fix tests
tac0turtle Feb 6, 2020
ccc799c
move slashevents to proto
tac0turtle Feb 6, 2020
59d8427
bump buf to 0.7
tac0turtle Feb 6, 2020
728ac20
remove here
tac0turtle Feb 6, 2020
677a8f1
Merge branch 'master' into proto/distr
tac0turtle Feb 7, 2020
77b6f1f
add applevelcodec
tac0turtle Feb 7, 2020
41426fa
add make cmd for tendermint proto files update
tac0turtle Feb 7, 2020
789a03d
fix spacing
tac0turtle Feb 7, 2020
a2346d3
add changelog
tac0turtle Feb 7, 2020
3019263
Merge branch 'master' into proto/distr
tac0turtle Feb 7, 2020
fcbe7c3
Fix x/crisis linting
alexanderbez Feb 7, 2020
28591b3
Verify and cleanup proto types
alexanderbez Feb 7, 2020
230829b
Update CHANGELOG.md
alexanderbez Feb 10, 2020
7f2140d
Update x/distribution/keeper/delegation.go
alexanderbez Feb 10, 2020
cad3caf
Update x/distribution/keeper/invariants.go
alexanderbez Feb 10, 2020
7a5ebff
Merge branch 'master' into proto/distr
alexanderbez Feb 10, 2020
ebe0140
Review suggestions/linting
alexanderbez Feb 10, 2020
69f965a
Review suggestions/linting
alexanderbez Feb 10, 2020
d680eac
change json tag of height
tac0turtle Feb 11, 2020
1988305
revet query.go changes
tac0turtle Feb 11, 2020
45159b8
Merge branch 'master' into proto/distr
tac0turtle Feb 11, 2020
0d71b3b
add sed command to third_party tendermint cmds
tac0turtle Feb 11, 2020
6cd4103
Update changelog entry
alexanderbez Feb 11, 2020
970562d
Merge branch 'master' into proto/distr
alexanderbez Feb 11, 2020
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
Prev Previous commit
Next Next commit
Fix iteration
  • Loading branch information
alexanderbez committed Feb 4, 2020
commit 0a904f15db0ecf930e88416ca80e1fb5871dfe99
6 changes: 3 additions & 3 deletions x/staking/keeper/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ func (k Keeper) IterateLastValidatorPowers(ctx sdk.Context, handler func(operato
defer iter.Close()
for ; iter.Valid(); iter.Next() {
addr := sdk.ValAddress(iter.Key()[len(types.LastValidatorPowerKey):])
ip := sdk.IntProto{}
intV := &gogotypes.Int64Value{}

k.cdc.MustUnmarshalBinaryLengthPrefixed(iter.Value(), &ip)
if handler(addr, ip.Int.Int64()) {
k.cdc.MustUnmarshalBinaryLengthPrefixed(iter.Value(), intV)
if handler(addr, intV.GetValue()) {
break
}
}
Expand Down