forked from Qortal/qortal
Safety check - also to be removed shortly.
This commit is contained in:
parent
0eebfe4a8c
commit
8b3f9db497
@ -393,6 +393,10 @@ public class Block {
|
|||||||
byte[] encodedOnlineAccounts = BlockTransformer.encodeOnlineAccounts(onlineAccountsSet);
|
byte[] encodedOnlineAccounts = BlockTransformer.encodeOnlineAccounts(onlineAccountsSet);
|
||||||
int onlineAccountsCount = onlineAccountsSet.size();
|
int onlineAccountsCount = onlineAccountsSet.size();
|
||||||
|
|
||||||
|
if (encodedOnlineAccounts.length > 1024)
|
||||||
|
// Safety check - to be removed along with above temporary limitation
|
||||||
|
return null;
|
||||||
|
|
||||||
// Concatenate online account timestamp signatures (in correct order)
|
// Concatenate online account timestamp signatures (in correct order)
|
||||||
byte[] onlineAccountsSignatures = new byte[onlineAccountsCount * Transformer.SIGNATURE_LENGTH];
|
byte[] onlineAccountsSignatures = new byte[onlineAccountsCount * Transformer.SIGNATURE_LENGTH];
|
||||||
for (int i = 0; i < onlineAccountsCount; ++i) {
|
for (int i = 0; i < onlineAccountsCount; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user