Browse Source

testnet changes

PascalCoin 7 years ago
parent
commit
c453b277f8
2 changed files with 6 additions and 2 deletions
  1. 1 1
      src/core/UConst.pas
  2. 5 1
      src/core/UNetProtocol.pas

+ 1 - 1
src/core/UConst.pas

@@ -153,7 +153,7 @@ Const
 
   CT_TRUE_FALSE : Array[Boolean] Of AnsiString = ('FALSE','TRUE');
 
-  CT_MAX_0_fee_operations_per_block_by_miner = {$IFDEF PRODUCTION}2000{$ELSE}{$IFDEF TESTNET}2{$ELSE}{$ENDIF}{$ENDIF};
+  CT_MAX_0_fee_operations_per_block_by_miner = {$IFDEF PRODUCTION}2000{$ELSE}{$IFDEF TESTNET}20{$ELSE}{$ENDIF}{$ENDIF};
   CT_MAX_Operations_per_block_by_miner =  {$IFDEF PRODUCTION}10000{$ELSE}{$IFDEF TESTNET}50{$ELSE}{$ENDIF}{$ENDIF};
 
   CT_MAX_MultiOperation_Senders = 1000;

+ 5 - 1
src/core/UNetProtocol.pas

@@ -1787,7 +1787,11 @@ Const CT_LogSender = 'GetNewBlockChainFromClient';
         // Will concat safeboxs:
         chunk1 := TMemoryStream.Create;
         try
-          chunk1.CopyFrom(chunks[0].chunkStream,0);
+          if (length(chunks)=1) then begin
+            receiveData.CopyFrom(chunks[0].chunkStream,0);
+          end else begin
+            chunk1.CopyFrom(chunks[0].chunkStream,0);
+          end;
           for i:=1 to high(chunks) do begin
             receiveData.Size:=0;
             chunk1.Position:=0;