[dead code?] ProcessGas GetNetwork/SetNetwork
https://gitlab.com/thorchain/thornode/-/blob/v1.97.2/x/thorchain/manager_gas_current.go#L259-263
vault, err := keeper.GetNetwork(ctx)
if err != nil {
ctx.Logger().Error("fail to get network data", "error", err)
return
}
https://gitlab.com/thorchain/thornode/-/blob/v1.97.2/x/thorchain/manager_gas_current.go#L312-314
if err := keeper.SetNetwork(ctx, vault); err != nil {
ctx.Logger().Error("fail to set network data", "error", err)
}
Unless I'm overlooking something, ProcessGas
calls GetNetwork
only to do a SetNetwork
,
not using 'vault' for anything else the function.
As accessing the keeper (whether Getting or Setting) changes a block's commit hash, removing these should be a version-specific change.
Edited by Multipartite