Explorar o código

Update pascalcoin_miner.pp -> TRawBytes

PascalCoin %!s(int64=6) %!d(string=hai) anos
pai
achega
79b7b0b81f
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      src/pascalcoin_miner.pp

+ 6 - 6
src/pascalcoin_miner.pp

@@ -136,7 +136,7 @@ begin
     If TCustomMinerDeviceThread(Sender).MinerValuesForWork.block>0 then begin
     If TCustomMinerDeviceThread(Sender).MinerValuesForWork.block>0 then begin
       WriteLine(CT_Line_MinerValues,Format('Current block: %d Wallet Name: "%s" Target: %s',
       WriteLine(CT_Line_MinerValues,Format('Current block: %d Wallet Name: "%s" Target: %s',
         [TCustomMinerDeviceThread(Sender).MinerValuesForWork.block,
         [TCustomMinerDeviceThread(Sender).MinerValuesForWork.block,
-         FPoolMinerThread.GlobalMinerValuesForWork.payload_start,
+         FPoolMinerThread.GlobalMinerValuesForWork.payload_start.ToPrintable,
          IntToHex(TCustomMinerDeviceThread(Sender).MinerValuesForWork.target,8)
          IntToHex(TCustomMinerDeviceThread(Sender).MinerValuesForWork.target,8)
          ]));
          ]));
     end;
     end;
@@ -146,7 +146,7 @@ end;
 procedure TPascalMinerApp.OnFoundNOnce(Sender: TCustomMinerDeviceThread; Timestamp, nOnce: Cardinal);
 procedure TPascalMinerApp.OnFoundNOnce(Sender: TCustomMinerDeviceThread; Timestamp, nOnce: Cardinal);
 begin
 begin
   WriteLine(CT_Line_LastFound + FDeviceThreads.Count,FormatDateTime('hh:nn:ss',now)+' Block:'+IntToStr(Sender.MinerValuesForWork.block)+' NOnce:'+Inttostr(nOnce)+
   WriteLine(CT_Line_LastFound + FDeviceThreads.Count,FormatDateTime('hh:nn:ss',now)+' Block:'+IntToStr(Sender.MinerValuesForWork.block)+' NOnce:'+Inttostr(nOnce)+
-    ' Timestamp:'+inttostr(Timestamp)+' Miner:'+Sender.MinerValuesForWork.payload_start);
+    ' Timestamp:'+inttostr(Timestamp)+' Miner:'+Sender.MinerValuesForWork.payload_start.ToPrintable);
 end;
 end;
 
 
 procedure TPascalMinerApp.WriteLine(nline: Integer; txt: String);
 procedure TPascalMinerApp.WriteLine(nline: Integer; txt: String);
@@ -298,12 +298,12 @@ var
               else hrHashing := 0;
               else hrHashing := 0;
               gs := devt.GlobalDeviceStats;
               gs := devt.GlobalDeviceStats;
               If ms.RoundsCount>0 then begin
               If ms.RoundsCount>0 then begin
-                s := FormatDateTime('hh:nn:ss',now)+Format(' Miner:"%s" at %0.1f H/s - Rounds: %0.2f K Found: %d',[devt.MinerValuesForWork.payload_start,hrHashing, gs.RoundsCount/1000, gs.WinsCount]);
+                s := FormatDateTime('hh:nn:ss',now)+Format(' Miner:"%s" at %0.1f H/s - Rounds: %0.2f K Found: %d',[devt.MinerValuesForWork.payload_start.ToString,hrHashing, gs.RoundsCount/1000, gs.WinsCount]);
                 If (gs.Invalids>0) then s := s +' '+inttostr(gs.Invalids)+' ERRORS!';
                 If (gs.Invalids>0) then s := s +' '+inttostr(gs.Invalids)+' ERRORS!';
                 WriteLine(CT_Line_MiningStatus+i,s);
                 WriteLine(CT_Line_MiningStatus+i,s);
               end else begin
               end else begin
                 If gs.RoundsCount>0 then begin
                 If gs.RoundsCount>0 then begin
-                  s := FormatDateTime('hh:nn:ss',now)+Format(' Miner:"%s" **NOT MINING** - Rounds: %0.2f K Found: %d',[devt.MinerValuesForWork.payload_start,gs.RoundsCount/1000, gs.WinsCount]);
+                  s := FormatDateTime('hh:nn:ss',now)+Format(' Miner:"%s" **NOT MINING** - Rounds: %0.2f K Found: %d',[devt.MinerValuesForWork.payload_start.ToString,gs.RoundsCount/1000, gs.WinsCount]);
                   If (gs.Invalids>0) then s := s +' '+inttostr(gs.Invalids)+' ERRORS!';
                   If (gs.Invalids>0) then s := s +' '+inttostr(gs.Invalids)+' ERRORS!';
                 end else begin
                 end else begin
                   s := FormatDateTime('hh:nn:ss',now)+' Not mining...';
                   s := FormatDateTime('hh:nn:ss',now)+' Not mining...';
@@ -315,12 +315,12 @@ var
               else hrHashing := 0;
               else hrHashing := 0;
               gs := devt.GlobalDeviceStats;
               gs := devt.GlobalDeviceStats;
               If ms.RoundsCount>0 then begin
               If ms.RoundsCount>0 then begin
-                s := FormatDateTime('hh:nn:ss',now)+Format(' Miner:"%s" at %0.2f MH/s - Rounds: %0.2f G Found: %d',[devt.MinerValuesForWork.payload_start,hrHashing, gs.RoundsCount/1000000000, gs.WinsCount]);
+                s := FormatDateTime('hh:nn:ss',now)+Format(' Miner:"%s" at %0.2f MH/s - Rounds: %0.2f G Found: %d',[devt.MinerValuesForWork.payload_start.ToString,hrHashing, gs.RoundsCount/1000000000, gs.WinsCount]);
                 If (gs.Invalids>0) then s := s +' '+inttostr(gs.Invalids)+' ERRORS!';
                 If (gs.Invalids>0) then s := s +' '+inttostr(gs.Invalids)+' ERRORS!';
                 WriteLine(CT_Line_MiningStatus+i,s);
                 WriteLine(CT_Line_MiningStatus+i,s);
               end else begin
               end else begin
                 If gs.RoundsCount>0 then begin
                 If gs.RoundsCount>0 then begin
-                  s := FormatDateTime('hh:nn:ss',now)+Format(' Miner:"%s" **NOT MINING** - Rounds: %0.2f G Found: %d',[devt.MinerValuesForWork.payload_start,gs.RoundsCount/1000000000, gs.WinsCount]);
+                  s := FormatDateTime('hh:nn:ss',now)+Format(' Miner:"%s" **NOT MINING** - Rounds: %0.2f G Found: %d',[devt.MinerValuesForWork.payload_start.ToString,gs.RoundsCount/1000000000, gs.WinsCount]);
                   If (gs.Invalids>0) then s := s +' '+inttostr(gs.Invalids)+' ERRORS!';
                   If (gs.Invalids>0) then s := s +' '+inttostr(gs.Invalids)+' ERRORS!';
                 end else begin
                 end else begin
                   s := FormatDateTime('hh:nn:ss',now)+' Not mining...';
                   s := FormatDateTime('hh:nn:ss',now)+' Not mining...';