Unit Noso.Masternodes
Description
This item has no description.
Uses
- Classes
- IdGlobal
- IdTCPClient
- Noso.Crypto
- Noso.Debug
- Noso.General
- Noso.Summary
- Noso.Time
- strutils
- SysUtils
Overview
Classes, Interfaces, Objects and Records
| Name | Description |
|---|---|
Record TMNCheck |
|
Packed Record TMNode |
|
Packed Record TMNsData |
|
Class TThreadMNVerificator |
Functions and Procedures
procedure AddMNCheck(ThisData: TMNCheck); |
procedure AddWaitingMNs(Linea: String); |
function CheckMNReport(LineText: String; block: Integer): String; |
procedure ClearMNIPProcessed(); |
procedure ClearMNsChecks(); |
procedure ClearMNsList(); |
procedure ClearReceivedMNs(); |
procedure CreditMNVerifications(); |
procedure FillMNsArray(TValue: String); |
function FormatMasternodeCheck(Data: TMNCheck): String; |
function GetMasternodeCheckCount(): Integer; |
function GetMNAgeCount(TNode: TMNode): String; |
function GetMNCheckFromString(Linea: String): TMNCheck; |
function GetMNodeFromString(const StringData: String; out ToMNode: TMNode): Boolean; |
function GetMNReportString(block: Integer): String; |
function GetMNsAddresses(Block: Integer): String; |
function GetMNsHash(): String; |
function GetMNsListLength(): Integer; |
function GetMN_FileText(): String; |
function GetStringFromMN(Node: TMNode): String; |
function GetValidNodesCountOnCheck(StringNodes: String): Integer; |
function GetVerificatorsText(): String; |
function GetWaitingMNs(): String; |
function IsIPMNAlreadyProcessed(OrderText: String): Boolean; |
function IsLegitNewNode(ThisNode: TMNode; block: Integer): Boolean; |
function IsMNIPReceived(DataSource: String): Boolean; |
function IsMyMNCheckDone(): Boolean; |
function IsMyMNListed(LocalIP: String): Boolean; |
function LengthReceivedMNs(): Integer; |
function LengthWaitingMNs(): Integer; |
function LoadMNsFile(): String; |
function MnsCheckExists(Ip: String): Boolean; |
function PopulateMasternodeList(out LDataArray: TStringArray): Boolean; |
function RunMNVerification(Block: Integer; LocSynctus: String; LocalIP: String; publicK, privateK: String): String; |
procedure SaveMNsFile(GotText: String); |
procedure SetLocalIP(NewValue: String); |
procedure SetMasternodesFilename(LText: String); |
procedure SetMNsHash(); |
procedure SetMN_FileText(lvalue: String); |
procedure SetMN_Sign(SignAddress, lPublicKey, lPrivateKey: String); |
function VerifyThreadsCount: Integer; |
Variables
ArrayIPsProcessed: array of String; |
ArrayMNsData: array of TMNsData; |
ArrReceivedMNs: array of String; |
ArrWaitMNs: array of String; |
CurrSynctus: String; |
LocalMasternodeFunds: String = ''; |
LocalMasternodeIP: String = ''; |
LocalMasternodePort: String = '8080'; |
LocalMasternodePrivateKey: String = ''; |
LocalMasternodePublicKey: String = ''; |
LocalMasternodeSignature: String = ''; |
MasternodeChecks: array of TMNCheck; |
MasterNodesFilename: String = ''; |
MNFileHandler: textfile; |
MNsChecksLock: TRTLCriticalSection; |
MNsFileLock: TRTLCriticalSection; |
MNsHashLock: TRTLCriticalSection; |
MNsIPProcLock: TRTLCriticalSection; |
MNsList: array of TMnode; |
MNsListCopy: array of TMnode; |
MNsListLock: TRTLCriticalSection; |
MN_FileText: String = ''; |
MN_FileTextLock: TRTLCriticalSection; |
MyMNsHash: String = ''; |
OpenVerificators: Integer; |
ReceivedMNsLock: TRTLCriticalSection; |
UnconfirmedIPs: Integer; |
VerifiedNodes: String; |
VerifiedNodesLock: TRTLCriticalSection; |
VerifyThreadLock: TRTLCriticalSection; |
WaitingMNsLock: TRTLCriticalSection; |
Description
Functions and Procedures
procedure AddMNCheck(ThisData: TMNCheck); |
|
Adds a new MNCheck |
procedure AddWaitingMNs(Linea: String); |
|
This item has no description. |
function CheckMNReport(LineText: String; block: Integer): String; |
|
This item has no description. |
procedure ClearMNIPProcessed(); |
|
This item has no description. |
procedure ClearMNsChecks(); |
|
Clears all the MNS checks |
procedure ClearMNsList(); |
|
This item has no description. |
procedure ClearReceivedMNs(); |
|
This item has no description. |
procedure CreditMNVerifications(); |
|
This item has no description. |
procedure FillMNsArray(TValue: String); |
|
This item has no description. |
function FormatMasternodeCheck(Data: TMNCheck): String; |
|
This item has no description. |
function GetMasternodeCheckCount(): Integer; |
|
Returns the number of MNs checks |
function GetMNAgeCount(TNode: TMNode): String; |
|
This item has no description. |
function GetMNCheckFromString(Linea: String): TMNCheck; |
|
Converts a string into a TMNChekc data |
function GetMNodeFromString(const StringData: String; out ToMNode: TMNode): Boolean; |
|
Converts a String into a MNNode data |
function GetMNReportString(block: Integer): String; |
|
Returns the string to send the own MN report |
function GetMNsAddresses(Block: Integer): String; |
|
Returns the string to be stored on the masternodes.txt file |
function GetMNsHash(): String; |
|
This item has no description. |
function GetMNsListLength(): Integer; |
|
Returns the count of reported MNs |
function GetMN_FileText(): String; |
|
This item has no description. |
function GetStringFromMN(Node: TMNode): String; |
|
Converst a MNNode data into a string |
function GetValidNodesCountOnCheck(StringNodes: String): Integer; |
|
This item has no description. |
function GetVerificatorsText(): String; |
|
This item has no description. |
function GetWaitingMNs(): String; |
|
This item has no description. |
function IsIPMNAlreadyProcessed(OrderText: String): Boolean; |
|
Verify if an IP was already processed |
function IsLegitNewNode(ThisNode: TMNode; block: Integer): Boolean; |
|
This item has no description. |
function IsMNIPReceived(DataSource: String): Boolean; |
|
This item has no description. |
function IsMyMNCheckDone(): Boolean; |
|
This item has no description. |
function IsMyMNListed(LocalIP: String): Boolean; |
|
This item has no description. |
function LengthReceivedMNs(): Integer; |
|
This item has no description. |
function LengthWaitingMNs(): Integer; |
|
This item has no description. |
function LoadMNsFile(): String; |
|
This item has no description. |
function MnsCheckExists(Ip: String): Boolean; |
|
Verify if an IP already sent a verification |
function PopulateMasternodeList(out LDataArray: TStringArray): Boolean; |
|
Fills the given array with the nodes reports to be sent to another peer |
function RunMNVerification(Block: Integer; LocSynctus: String; LocalIP: String; publicK, privateK: String): String; |
|
This item has no description. |
procedure SaveMNsFile(GotText: String); |
|
This item has no description. |
procedure SetLocalIP(NewValue: String); |
|
This item has no description. |
procedure SetMasternodesFilename(LText: String); |
|
This item has no description. |
procedure SetMNsHash(); |
|
This item has no description. |
procedure SetMN_FileText(lvalue: String); |
|
This item has no description. |
procedure SetMN_Sign(SignAddress, lPublicKey, lPrivateKey: String); |
|
This item has no description. |
function VerifyThreadsCount: Integer; |
|
This item has no description. |
Variables
ArrayIPsProcessed: array of String; |
|
This item has no description. |
ArrayMNsData: array of TMNsData; |
|
This item has no description. |
ArrReceivedMNs: array of String; |
|
This item has no description. |
ArrWaitMNs: array of String; |
|
This item has no description. |
CurrSynctus: String; |
|
This item has no description. |
LocalMasternodeFunds: String = ''; |
|
This item has no description. |
LocalMasternodeIP: String = ''; |
|
This item has no description. |
LocalMasternodePort: String = '8080'; |
|
This item has no description. |
LocalMasternodePrivateKey: String = ''; |
|
This item has no description. |
LocalMasternodePublicKey: String = ''; |
|
This item has no description. |
LocalMasternodeSignature: String = ''; |
|
This item has no description. |
MasternodeChecks: array of TMNCheck; |
|
This item has no description. |
MasterNodesFilename: String = ''; |
|
This item has no description. |
MNFileHandler: textfile; |
|
This item has no description. |
MNsChecksLock: TRTLCriticalSection; |
|
This item has no description. |
MNsFileLock: TRTLCriticalSection; |
|
This item has no description. |
MNsHashLock: TRTLCriticalSection; |
|
This item has no description. |
MNsIPProcLock: TRTLCriticalSection; |
|
This item has no description. |
MNsList: array of TMnode; |
|
This item has no description. |
MNsListCopy: array of TMnode; |
|
This item has no description. |
MNsListLock: TRTLCriticalSection; |
|
This item has no description. |
MN_FileText: String = ''; |
|
This item has no description. |
MN_FileTextLock: TRTLCriticalSection; |
|
This item has no description. |
MyMNsHash: String = ''; |
|
This item has no description. |
OpenVerificators: Integer; |
|
This item has no description. |
ReceivedMNsLock: TRTLCriticalSection; |
|
This item has no description. |
UnconfirmedIPs: Integer; |
|
This item has no description. |
VerifiedNodes: String; |
|
This item has no description. |
VerifiedNodesLock: TRTLCriticalSection; |
|
This item has no description. |
VerifyThreadLock: TRTLCriticalSection; |
|
This item has no description. |
WaitingMNsLock: TRTLCriticalSection; |
|
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.