forked from Qortal/qortal
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:
parent
d741580ccf
commit
d3c1602d9b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user