-
Notifications
You must be signed in to change notification settings - Fork 94
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
Msg epoch params #318
Msg epoch params #318
Conversation
fmt.Println("Amount", delegation.Amount.Amount) | ||
|
||
msgDelegate := stakingtypes.MsgDelegate{DelegatorAddress: delegation.DelegatorAddress, ValidatorAddress: delegation.ValidatorAddress, Amount: delegation.Amount} | ||
_, err := am.msgServer.Delegate(ctx, &msgDelegate) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
println("Validator Address: ", redelegation.ValidatorSrcAddress) | ||
|
||
msg_redelegation := stakingtypes.MsgBeginRedelegate{DelegatorAddress: redelegation.DelegatorAddress, ValidatorSrcAddress: redelegation.ValidatorSrcAddress, ValidatorDstAddress: redelegation.ValidatorDstAddress, Amount: redelegation.Amount} | ||
_, err := am.msgServer.BeginRedelegate(ctx, &msg_redelegation) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
println("Undelegation Validator Address: ", undelegation.ValidatorAddress) | ||
|
||
msg_undelegate := stakingtypes.MsgUndelegate{DelegatorAddress: undelegation.DelegatorAddress, ValidatorAddress: undelegation.ValidatorAddress, Amount: undelegation.Amount} | ||
_, err := am.msgServer.Undelegate(ctx, &msg_undelegate) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
println("Cancel Unbonding Delegations Validator Address: ", cancel_unbonding_delegation.ValidatorAddress) | ||
|
||
msg_cancle_unbonding_delegation := stakingtypes.MsgCancelUnbondingDelegation{DelegatorAddress: cancel_unbonding_delegation.DelegatorAddress, ValidatorAddress: cancel_unbonding_delegation.ValidatorAddress, Amount: cancel_unbonding_delegation.Amount, CreationHeight: cancel_unbonding_delegation.CreationHeight} | ||
_, err := am.msgServer.CancelUnbondingDelegation(ctx, &msg_cancle_unbonding_delegation) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
compete EndBlock for custom staking module. batch bond/unbond/redelegate