File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ message QuerySignalTotalPowersRequest {
132
132
133
133
// QuerySignalTotalPowersResponse is the response type for the Query/SignalTotalPowers RPC method.
134
134
message QuerySignalTotalPowersResponse {
135
- // SingalTotalPowers is a list of signal-total-powers.
135
+ // SignalTotalPowers is a list of signal-total-powers.
136
136
repeated Signal signal_total_powers = 1 ;
137
137
138
138
// Pagination is the pagination information in the response.
@@ -165,6 +165,7 @@ message QueryDelegatorSignalsRequest {
165
165
166
166
// QueryDelegatorSignalsResponse is the response type for the Query/DelegatorSignals RPC method
167
167
message QueryDelegatorSignalsResponse {
168
+ // Signals is a list of signals submitted by the delegator.
168
169
repeated Signal signals = 1 [(gogoproto.nullable ) = false ];
169
170
}
170
171
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ grogu config validator $(bandd keys show validator -a --bech val --keyring-backe
12
12
grogu config bothan " $BOTHAN_URL "
13
13
14
14
# setup broadcast-timeout to grogu config
15
- grogu config broadcast-timeout " 5m "
15
+ grogu config broadcast-timeout " 1m "
16
16
17
17
# setup rpc-poll-interval to grogu config
18
18
grogu config rpc-poll-interval " 1s"
@@ -25,22 +25,22 @@ echo "y" | bandd tx oracle activate --from validator --gas-prices 0.0025uband --
25
25
# wait for activation transaction success
26
26
sleep 2
27
27
28
- for i in $( eval echo {1..1 })
28
+ for i in $( eval echo {1..4 })
29
29
do
30
- # add reporter key
31
- grogu keys add reporter $i
30
+ # add feeder key
31
+ grogu keys add feeder $i
32
32
done
33
33
34
- # send band tokens to reporters
34
+ # send band tokens to feeders
35
35
echo " y" | bandd tx bank send validator $( grogu keys list -a) 1000000uband --gas-prices 0.0025uband --keyring-backend test --chain-id bandchain
36
36
37
37
# wait for sending band tokens transaction success
38
38
sleep 2
39
39
40
- # add reporter to bandchain
40
+ # add feeder to bandchain
41
41
echo " y" | bandd tx feeds add-grantees $( grogu keys list -a) --from validator --gas-prices 0.0025uband --keyring-backend test --chain-id bandchain
42
42
43
- # wait for addding reporter transaction success
43
+ # wait for addding feeder transaction success
44
44
sleep 2
45
45
46
46
# run grogu
Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ func (k Keeper) SignalTotalPowersByPowerStoreIterator(ctx sdk.Context) sdk.Itera
147
147
return sdk .KVStoreReversePrefixIterator (ctx .KVStore (k .storeKey ), types .SignalTotalPowerByPowerIndexKeyPrefix )
148
148
}
149
149
150
+ // CalculateNewSignalTotalPowers calculates the new signal-total-powers from all delegator-signals.
150
151
func (k Keeper ) CalculateNewSignalTotalPowers (ctx sdk.Context ) ([]types.Signal , error ) {
151
152
delegatorSignals := k .GetAllDelegatorSignals (ctx )
152
153
signalIDToPower := make (map [string ]int64 )
You can’t perform that action at this time.
0 commit comments