From 7363b33ddd3d90f35e45e499dfb631bb0963bb16 Mon Sep 17 00:00:00 2001 From: Lucas Bertrand Date: Mon, 15 Jul 2024 16:53:24 +0200 Subject: [PATCH] perf(`crosschain`): increase the outbound tracker buffer from 2 to 5 (#2482) * increase the outbound tracker buffer * update changelogs --- changelog.md | 4 ++++ x/crosschain/keeper/msg_server_add_outbound_tracker.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 4b3b98e0db..115a144a52 100644 --- a/changelog.md +++ b/changelog.md @@ -115,6 +115,10 @@ * [2321](https://github.com/zeta-chain/node/pull/2321) - improve documentation for ZetaClient functions and packages +### Performance + +* [2482](https://github.com/zeta-chain/node/pull/2482) - increase the outbound tracker buffer length from 2 to 5 + ## v17.0.0 ### Fixes diff --git a/x/crosschain/keeper/msg_server_add_outbound_tracker.go b/x/crosschain/keeper/msg_server_add_outbound_tracker.go index 5a3c98e9e9..2bfb63d8ab 100644 --- a/x/crosschain/keeper/msg_server_add_outbound_tracker.go +++ b/x/crosschain/keeper/msg_server_add_outbound_tracker.go @@ -15,7 +15,7 @@ import ( ) // MaxOutboundTrackerHashes is the maximum number of hashes that can be stored in the outbound transaction tracker -const MaxOutboundTrackerHashes = 2 +const MaxOutboundTrackerHashes = 5 // AddOutboundTracker adds a new record to the outbound transaction tracker. // only the admin policy account and the observer validators are authorized to broadcast this message without proof.