Skip to content

Commit

Permalink
Fix MaxTxnSizeBytes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondhands0 committed Apr 5, 2024
1 parent cc37ff0 commit c5e17e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/atomic_txns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c5e17e1

Please sign in to comment.