Skip to content

Commit 0d5268f

Browse files
committed
fix from comments
1 parent 38d72a7 commit 0d5268f

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

proto/feeds/v1beta1/query.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ message QuerySignalTotalPowersRequest {
132132

133133
// QuerySignalTotalPowersResponse is the response type for the Query/SignalTotalPowers RPC method.
134134
message QuerySignalTotalPowersResponse {
135-
// SingalTotalPowers is a list of signal-total-powers.
135+
// SignalTotalPowers is a list of signal-total-powers.
136136
repeated Signal signal_total_powers = 1;
137137

138138
// Pagination is the pagination information in the response.
@@ -165,6 +165,7 @@ message QueryDelegatorSignalsRequest {
165165

166166
// QueryDelegatorSignalsResponse is the response type for the Query/DelegatorSignals RPC method
167167
message QueryDelegatorSignalsResponse {
168+
// Signals is a list of signals submitted by the delegator.
168169
repeated Signal signals = 1 [(gogoproto.nullable) = false];
169170
}
170171

scripts/start_grogu.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ grogu config validator $(bandd keys show validator -a --bech val --keyring-backe
1212
grogu config bothan "$BOTHAN_URL"
1313

1414
# setup broadcast-timeout to grogu config
15-
grogu config broadcast-timeout "5m"
15+
grogu config broadcast-timeout "1m"
1616

1717
# setup rpc-poll-interval to grogu config
1818
grogu config rpc-poll-interval "1s"
@@ -25,22 +25,22 @@ echo "y" | bandd tx oracle activate --from validator --gas-prices 0.0025uband --
2525
# wait for activation transaction success
2626
sleep 2
2727

28-
for i in $(eval echo {1..1})
28+
for i in $(eval echo {1..4})
2929
do
30-
# add reporter key
31-
grogu keys add reporter$i
30+
# add feeder key
31+
grogu keys add feeder$i
3232
done
3333

34-
# send band tokens to reporters
34+
# send band tokens to feeders
3535
echo "y" | bandd tx bank send validator $(grogu keys list -a) 1000000uband --gas-prices 0.0025uband --keyring-backend test --chain-id bandchain
3636

3737
# wait for sending band tokens transaction success
3838
sleep 2
3939

40-
# add reporter to bandchain
40+
# add feeder to bandchain
4141
echo "y" | bandd tx feeds add-grantees $(grogu keys list -a) --from validator --gas-prices 0.0025uband --keyring-backend test --chain-id bandchain
4242

43-
# wait for addding reporter transaction success
43+
# wait for addding feeder transaction success
4444
sleep 2
4545

4646
# run grogu

x/feeds/keeper/keeper_signal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ func (k Keeper) SignalTotalPowersByPowerStoreIterator(ctx sdk.Context) sdk.Itera
147147
return sdk.KVStoreReversePrefixIterator(ctx.KVStore(k.storeKey), types.SignalTotalPowerByPowerIndexKeyPrefix)
148148
}
149149

150+
// CalculateNewSignalTotalPowers calculates the new signal-total-powers from all delegator-signals.
150151
func (k Keeper) CalculateNewSignalTotalPowers(ctx sdk.Context) ([]types.Signal, error) {
151152
delegatorSignals := k.GetAllDelegatorSignals(ctx)
152153
signalIDToPower := make(map[string]int64)

x/feeds/types/query.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)