Skip to content
Snippets Groups Projects

[V132-specific] Only spend UTXO unused gas for Migrate outbounds

Merged Multipartite requested to merge Multi/spend-UTXO-unused-gas-on-migrate-only into develop
4 files
+ 24
4
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -30,6 +30,7 @@ import (
"gitlab.com/thorchain/thornode/common"
"gitlab.com/thorchain/thornode/common/cosmos"
"gitlab.com/thorchain/thornode/config"
"gitlab.com/thorchain/thornode/x/thorchain"
types2 "gitlab.com/thorchain/thornode/x/thorchain/types"
)
@@ -205,6 +206,9 @@ func (s *BitcoinSignerSuite) TestSignTx(c *C) {
func (s *BitcoinSignerSuite) TestSignTxHappyPathWithPrivateKey(c *C) {
addr, err := types2.GetRandomPubKey().GetAddress(common.BTCChain)
c.Assert(err, IsNil)
inHash := thorchain.GetRandomTxHash()
memo := "OUT:" + inHash.String() // Memo must be parsable or ParseMemo will error.
txOutItem := stypes.TxOutItem{
Chain: common.BTCChain,
ToAddress: addr,
@@ -215,8 +219,9 @@ func (s *BitcoinSignerSuite) TestSignTxHappyPathWithPrivateKey(c *C) {
MaxGas: common.Gas{
common.NewCoin(common.BTCAsset, cosmos.NewUint(1000)),
},
InHash: "",
InHash: inHash,
OutHash: "",
Memo: memo,
}
txHash := "256222fb25a9950479bb26049a2c00e75b89abbb7f0cf646c623b93e942c4c34"
c.Assert(err, IsNil)
Loading