Browse Source

Safety check - also to be removed shortly.

sync-long-tip
CalDescent 2 years ago
parent
commit
8b3f9db497
  1. 4
      src/main/java/org/qortal/block/Block.java

4
src/main/java/org/qortal/block/Block.java

@ -393,6 +393,10 @@ public class Block {
byte[] encodedOnlineAccounts = BlockTransformer.encodeOnlineAccounts(onlineAccountsSet);
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)
byte[] onlineAccountsSignatures = new byte[onlineAccountsCount * Transformer.SIGNATURE_LENGTH];
for (int i = 0; i < onlineAccountsCount; ++i) {

Loading…
Cancel
Save