diff --git a/CHANGELOG.md b/CHANGELOG.md index 15ac9b5..03153b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * [#83](https://github.com/babylonlabs-io/covenant-emulator/pull/83) covenant-signer: remove go.mod * [#95](https://github.com/babylonlabs-io/covenant-emulator/pull/95) removed local signer option as the covenant emulator should only connect to a remote signer +* [#96](https://github.com/babylonlabs-io/covenant-emulator/pull/96) add pagination to `queryDelegationsWithStatus` ## v0.11.3 diff --git a/clientcontroller/babylon.go b/clientcontroller/babylon.go index f77f9fe..4e95ded 100644 --- a/clientcontroller/babylon.go +++ b/clientcontroller/babylon.go @@ -206,7 +206,7 @@ func (bc *BabylonController) queryDelegationsWithStatus(status btcstakingtypes.B Limit: pgLimit, } - dels := make([]*types.Delegation, delsLimit) + dels := make([]*types.Delegation, 0, delsLimit) indexDels := uint64(0) for indexDels <= delsLimit {