From 324d2fbd58cacb09217043bcd98db8cde400355f Mon Sep 17 00:00:00 2001 From: cam-schultz Date: Wed, 5 Jun 2024 09:09:49 -0500 Subject: [PATCH 1/2] log nonce usage --- vms/evm/destination_client.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vms/evm/destination_client.go b/vms/evm/destination_client.go index 354ea689..b95bf543 100644 --- a/vms/evm/destination_client.go +++ b/vms/evm/destination_client.go @@ -101,6 +101,13 @@ func NewDestinationClient( return nil, err } + logger.Info( + "Initialized destination client", + zap.String("blockchainID", destinationID.String()), + zap.String("evmChainID", evmChainID.String()), + zap.Uint64("nonce", nonce), + ) + return &destinationClient{ client: client, lock: new(sync.Mutex), @@ -181,11 +188,12 @@ func (c *destinationClient) SendTx( ) return err } - c.currentNonce++ c.logger.Info( "Sent transaction", zap.String("txID", signedTx.Hash().String()), + zap.Uint64("nonce", c.currentNonce), ) + c.currentNonce++ return nil } From 240255c071a136da8c24892ae5e159d76a2d022d Mon Sep 17 00:00:00 2001 From: cam-schultz Date: Wed, 5 Jun 2024 09:10:08 -0500 Subject: [PATCH 2/2] support prerelease --- .goreleaser.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 180c78ef..1c122d08 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -58,4 +58,6 @@ release: # Default is extracted from the origin remote URL or empty if its private hosted. github: owner: ava-labs - name: awm-relayer \ No newline at end of file + name: awm-relayer + # If tag indicates rc, will mark it as prerelease + prerelease: auto \ No newline at end of file