Browse Source

Fix protocol valid value

Please note: Network protocol value is independent from Safebox/Blockchain protocol value
PascalCoin 6 years ago
parent
commit
272129fa56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/UNetProtocol.pas

+ 1 - 1
src/core/UNetProtocol.pas

@@ -2672,7 +2672,7 @@ begin
       if not DataBuffer.Read(optype,1)=1 then exit;
       opclass := TPCOperationsComp.GetOperationClassByOpType(optype);
       if Not Assigned(opclass) then exit;
-      op := opclass.Create(Self.NetProtocolVersion.protocol_version);
+      op := opclass.Create(TNode.Node.Bank.SafeBox.CurrentProtocol);
       Try
         op.LoadFromNettransfer(DataBuffer);
         operations.AddOperationToHashTree(op);