Browse Source

Buf fixed: "Access violation" on "getpendings" call

PascalCoin 6 years ago
parent
commit
0ade04f845
2 changed files with 1 additions and 1 deletions
  1. 1 0
      README.md
  2. 0 1
      src/core/URPC.pas

+ 1 - 0
README.md

@@ -72,6 +72,7 @@ Also, consider a donation at PascalCoin development account: "0-10"
     - Changed return value of "price". Previously was returned without decimals in native value (inconsistency bug), now will be returned as a PASCURRENCY (with 4 decimals)
     - Changed return value of "price". Previously was returned without decimals in native value (inconsistency bug), now will be returned as a PASCURRENCY (with 4 decimals)
 - Bug fixed: DoProcess_GetAccount_Request request type=1 (single account) didn't returned only 1
 - Bug fixed: DoProcess_GetAccount_Request request type=1 (single account) didn't returned only 1
 - Bug fixed: Invalid "lastBlockCache" value when found and orphan block that causes invalid propagation until a new block is found. Fixed.
 - Bug fixed: Invalid "lastBlockCache" value when found and orphan block that causes invalid propagation until a new block is found. Fixed.
+- Bug fixed: "Access violation" on "getpendings" JSON-RPC call when pendings count>0
 - Net protocol upgraded to "8" in order to accept new network p2p calls:
 - Net protocol upgraded to "8" in order to accept new network p2p calls:
   - "Fast block propagation" : NetOp 0x0012 for PIP-0015 
   - "Fast block propagation" : NetOp 0x0012 for PIP-0015 
   - "Get blockchain operations": NetOp 0x0013 for PIP-0015
   - "Get blockchain operations": NetOp 0x0013 for PIP-0015

+ 0 - 1
src/core/URPC.pas

@@ -3117,7 +3117,6 @@ begin
         for i := j to FNode.Operations.Count-1 do begin
         for i := j to FNode.Operations.Count-1 do begin
           If TPCOperation.OperationToOperationResume(0,FNode.Operations.Operation[i],True,FNode.Operations.Operation[i].SignerAccount,opr) then begin
           If TPCOperation.OperationToOperationResume(0,FNode.Operations.Operation[i],True,FNode.Operations.Operation[i].SignerAccount,opr) then begin
             opr.NOpInsideBlock:=i;
             opr.NOpInsideBlock:=i;
-            opr.time:=pcops.OperationBlock.timestamp;
             opr.Balance := -1; // Don't include!
             opr.Balance := -1; // Don't include!
             FillOperationResumeToJSONObject(opr,jsonarr.GetAsObject(jsonarr.Count));
             FillOperationResumeToJSONObject(opr,jsonarr.GetAsObject(jsonarr.Count));
           end;
           end;