mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
Adjust Asset data max size to reflect HSQLDB CLOB size
+ fix incorrect logic when calculating issue-asset transaction data length
This commit is contained in:
@@ -18,7 +18,7 @@ public class Asset {
|
||||
|
||||
public static final int MAX_NAME_SIZE = 400;
|
||||
public static final int MAX_DESCRIPTION_SIZE = 4000;
|
||||
public static final int MAX_DATA_SIZE = 4000;
|
||||
public static final int MAX_DATA_SIZE = 400000;
|
||||
|
||||
public static final long MAX_DIVISIBLE_QUANTITY = 10_000_000_000L;
|
||||
public static final long MAX_INDIVISIBLE_QUANTITY = 1_000_000_000_000_000_000L;
|
||||
|
@@ -103,7 +103,7 @@ public class IssueAssetTransactionTransformer extends TransactionTransformer {
|
||||
+ Utf8.encodedLength(issueAssetTransactionData.getDescription());
|
||||
|
||||
// In v2, assets have "data" field
|
||||
if (transactionData.getTimestamp() < BlockChain.getInstance().getQoraV2Timestamp())
|
||||
if (transactionData.getTimestamp() >= BlockChain.getInstance().getQoraV2Timestamp())
|
||||
dataLength += DATA_SIZE_LENGTH + Utf8.encodedLength(issueAssetTransactionData.getData());
|
||||
|
||||
// In v1, IssueAssetTransaction uses Asset.toBytes which also serializes
|
||||
|
Reference in New Issue
Block a user