From c5e17e11b251e0701a8f2a1a0d957c407252f13f Mon Sep 17 00:00:00 2001 From: diamondhands Date: Thu, 4 Apr 2024 20:29:02 -0700 Subject: [PATCH] Fix MaxTxnSizeBytes bug --- routes/atomic_txns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/atomic_txns.go b/routes/atomic_txns.go index 535bad768..72b94991d 100644 --- a/routes/atomic_txns.go +++ b/routes/atomic_txns.go @@ -76,7 +76,7 @@ func (fes *APIServer) CreateAtomicTxnsWrapper(ww http.ResponseWriter, req *http. // Validate that: // (1) The resulting transaction is not over the size limit of an atomic transaction. // (2) The resulting wrapper transactions have sufficient fees to cover the wrapper. - if txnSizeBytes > utxoView.GlobalParamsEntry.MaxTxnSizeBytesPoS { + if txnSizeBytes > utxoView.GetCurrentGlobalParamsEntry().MaxTxnSizeBytesPoS { _AddBadRequestError(ww, fmt.Sprint("CreateAtomicTxnsWrapper: Resulting wrapper transaction too large")) return }