Skip to content

Commit

Permalink
Merge branch 'jp/atomic_txns' into jp/preceding_atomic_txns
Browse files Browse the repository at this point in the history
  • Loading branch information
poolcoke committed Apr 1, 2024
2 parents 788a862 + 1e3c415 commit b19f45e
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.Params.MaxBlockSizeBytes/2 {
if txnSizeBytes > utxoView.GlobalParamsEntry.MaxTxnSizeBytesPoS {
_AddBadRequestError(ww, fmt.Sprint("CreateAtomicTxnsWrapper: Resulting wrapper transaction too large"))
return
}
Expand Down

0 comments on commit b19f45e

Please sign in to comment.