Skip to content

Commit

Permalink
fix: cherry-picked fixes, double watched gas price and fix btc schedu…
Browse files Browse the repository at this point in the history
…ler (#1693)

* double watched gas price and fix btc scheduler

* update changelog

---------

Co-authored-by: Lucas Bertrand <[email protected]>
  • Loading branch information
ws4charlie and lumtis authored Feb 6, 2024
1 parent 375cb96 commit 4d47d4f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
17 changes: 11 additions & 6 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
# CHANGELOG

## Unreleased

* `zetaclientd start` : 2 inputs required from stdin

### Refactor

* [1630](https://github.com/zeta-chain/node/pull/1630) added password prompts for hotkey and tss keyshare in zetaclient
Starting zetaclient now requires two passwords to be input; one for the hotkey and another for the tss key-share.
* `zetaclientd start` : 2 inputs required from stdin

### Fixes

* [1690](https://github.com/zeta-chain/node/issues/1690) - double watched gas prices and fix btc scheduler
* [1687](https://github.com/zeta-chain/node/pull/1687) - only use EVM supported chains for gas stability pool
* [1692](https://github.com/zeta-chain/node/pull/1692) - fix get params query for emissions module

### Tests

* [1584](https://github.com/zeta-chain/node/pull/1584) - allow to run E2E tests on any networks

## Version: v12.2.4

Expand All @@ -22,11 +32,6 @@
* [1663](https://github.com/zeta-chain/node/issues/1663) - skip Mumbai empty block if ethclient sanity check fails
* [1661](https://github.com/zeta-chain/node/issues/1661) - use estimated SegWit tx size for Bitcoin gas fee calculation
* [1667](https://github.com/zeta-chain/node/issues/1667) - estimate SegWit tx size in uinit of vByte
* [1692](https://github.com/zeta-chain/node/pull/1692) - fix get params query for emissions module

### Tests

* [1584](https://github.com/zeta-chain/node/pull/1584) - allow to run E2E tests on any networks

## Version: v12.1.0

Expand Down
2 changes: 2 additions & 0 deletions zetaclient/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func (b *ZetaCoreBridge) WrapMessageWithAuthz(msg sdk.Msg) (sdk.Msg, AuthZSigner
}

func (b *ZetaCoreBridge) PostGasPrice(chain common.Chain, gasPrice uint64, supply string, blockNum uint64) (string, error) {
// double the gas price to avoid gas price spike
gasPrice = gasPrice * 2
signerAddress := b.keys.GetOperatorAddress().String()
msg := types.NewMsgGasPriceVoter(signerAddress, chain.ChainId, gasPrice, supply, blockNum)

Expand Down
2 changes: 1 addition & 1 deletion zetaclient/zetacore_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (co *CoreObserver) scheduleCctxBTC(
}
if included || confirmed {
co.logger.ZetaChainWatcher.Info().Msgf("scheduleCctxBTC: outtx %s already included; do not schedule keysign", outTxID)
return
continue
}

// stop if the nonce being processed is higher than the pending nonce
Expand Down

0 comments on commit 4d47d4f

Please sign in to comment.