Browse Source

New GUI: compile fix

Herman Schoenfeld 7 years ago
parent
commit
32e2bbe02f
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/core.utils/UCoreUtils.pas
  2. 2 1
      src/gui/UUserInterface.pas

+ 1 - 1
src/core.utils/UCoreUtils.pas

@@ -258,7 +258,7 @@ var
   LDestBlock : Cardinal;
 begin
   LReady := Self.Bank.IsReady(LMsg);
-  if LReady and TNetData.NetData.IsGettingNewBlockChainFromClient then begin
+  if LReady and TNetData.NetData.IsGettingNewBlockChainFromClient(LMsg) then begin
     LDestBlock := TNetData.NetData.MaxRemoteOperationBlock.block;
     Result := Self.Bank.BlocksCount = TNetData.NetData.MaxRemoteOperationBlock.block;
   end;

+ 2 - 1
src/gui/UUserInterface.pas

@@ -491,11 +491,12 @@ var
   LActive, LDiscoveringPeers, LGettingNewBlockchain, LRemoteHasBiggerBlock, LNoConnections : boolean;
   LState : TUserInterfaceState;
   LLocalTip, LRemoteTip : Cardinal;
+  LMsg : AnsiString;
 begin
   LState := FState;
   LActive := FNode.NetServer.Active;
   LDiscoveringPeers := TNetData.NetData.IsDiscoveringServers;
-  LGettingNewBlockchain := TNetData.NetData.IsGettingNewBlockChainFromClient;
+  LGettingNewBlockchain := TNetData.NetData.IsGettingNewBlockChainFromClient(LMsg);
   LLocalTip := Node.Bank.BlocksCount;
   LRemoteTip := TNetData.NetData.MaxRemoteOperationBlock.block;
   LRemoteHasBiggerBlock := LRemoteTip > LLocalTip;