Skip to content

Commit

Permalink
3.5.6.7-leisure
Browse files Browse the repository at this point in the history
Gridcoin Research 3.5.6.7/MSI=40.3
Leisure Upgrade

- Added gridcoin diagnostics page.  To access it from the Menu click
Advanced | Diagnostics.  This is designed to find problems that would
keep a researcher from staking POR blocks.
- Syncing: Modified sync approach to detect ghost chains, missing
superblocks or out-of-sync-by-age conditions, and now the wallet should
recover automatically if it stays out of sync for 30+ minutes.
- Cleaned up some old .NET code.
- Removed GRCAddress from getpeerinfo
  • Loading branch information
gridcoin committed Jun 14, 2016
1 parent 42353be commit 1efbe86
Show file tree
Hide file tree
Showing 22 changed files with 1,077 additions and 181 deletions.
2 changes: 1 addition & 1 deletion Makefile.Debug
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: gridcoinresearch
# Generated by qmake (2.01a) (Qt 4.8.4) on: Sun Jun 5 17:50:12 2016
# Generated by qmake (2.01a) (Qt 4.8.4) on: Mon Jun 13 20:01:48 2016
# Project: gridcoinresearch.pro
# Template: app
#############################################################################
Expand Down
2 changes: 1 addition & 1 deletion Makefile.Release
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: gridcoinresearch
# Generated by qmake (2.01a) (Qt 4.8.4) on: Sun Jun 5 17:50:15 2016
# Generated by qmake (2.01a) (Qt 4.8.4) on: Mon Jun 13 20:01:49 2016
# Project: gridcoinresearch.pro
# Template: app
#############################################################################
Expand Down
8 changes: 4 additions & 4 deletions contrib/Installer/GridcoinInstaller/GridcoinResearch.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -1120,19 +1120,19 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Gridcoin Research"
"ProductCode" = "8:{11449F35-92F0-4A25-912E-910A9C8915C8}"
"PackageCode" = "8:{BB38A7E0-B695-4C35-BC49-6500233289A6}"
"ProductCode" = "8:{4C308408-9E66-4902-B378-759171FC8276}"
"PackageCode" = "8:{3CAB67D7-6E42-4453-975C-8762730EA179}"
"UpgradeCode" = "8:{9617E9EA-252F-43CE-B53E-B48C85F71192}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:FALSE"
"InstallAllUsers" = "11:TRUE"
"ProductVersion" = "8:40.2"
"ProductVersion" = "8:40.3"
"Manufacturer" = "8:GridcoinResearch"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
"Title" = "8:Gridcoin Research 40.2"
"Title" = "8:Gridcoin Research 40.3"
"Subject" = "8:"
"ARPCONTACT" = "8:The Gridcoin Developers"
"Keywords" = "8:Gridcoin Research"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ Public Class Form1

'mU.UpdateMagnitudesOnly()
'mU.ShowConfig()
mU.ShowFoundation()
'mU.ShowFoundation()
mU.ShowDiagnostics()


Exit Sub
Expand Down

This file was deleted.

50 changes: 50 additions & 0 deletions contrib/Installer/boinc/boinc/GRCDiagnostics.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Imports System.IO
Imports System.Net.Sockets
Imports System.Globalization

Public Class GRCDiagnostics

Public Function GetNISTDateTime() As DateTime
Try

Dim sNISTHOST As String = "time-nw.nist.gov" 'Atomic Clock Time Server in UTC
Dim client = New TcpClient(sNISTHOST, 13)
Dim localDateTime As DateTime

Using streamReader = New StreamReader(client.GetStream())
Dim response = streamReader.ReadToEnd()
Dim utcDateTimeString = response.Substring(7, 17)
'57551 16-06-12 16:57:53 50 0 0 353.8 UTC(NIST)
Dim sChopped As String = Mid(response, 7, 100)
sChopped = Replace(sChopped, "(NIST) *", "")
sChopped = Trim(Left(sChopped, 18))
sChopped += " UTC"
Dim sYear As String = "20" + Mid(sChopped, 1, 2)
Dim sMonth As String = Mid(sChopped, 4, 2)
Dim sDay As String = Mid(sChopped, 7, 2)
Dim sHour As String = Mid(sChopped, 10, 2)
Dim sMinute As String = Mid(sChopped, 13, 2)
Dim sSecond As String = Mid(sChopped, 16, 2)
localDateTime = New Date(Val(sYear), Val(sMonth), Val(sDay), Val(sHour), Val(sMinute), Val(sSecond))
End Using
Return localDateTime
Catch ex As Exception
Return CDate("1-1-1970")
End Try
End Function
Public Function VerifyPort(lPortNumber As Long, sHost As String) As Boolean

Try
Dim client = New TcpClient(sHost, lPortNumber)
Using streamReader = New StreamReader(client.GetStream())
Dim response = streamReader.ReadToEnd()
'Note if we made it this far without an error, the result is positive
Return True
End Using
Return True
Catch ex As Exception
Return False
End Try
End Function

End Class
Loading

0 comments on commit 1efbe86

Please sign in to comment.