add tari-gbt(rust)

This commit is contained in:
lzx
2025-09-04 16:09:36 +08:00
parent 953a76439a
commit 8cc56a489e
65 changed files with 4851 additions and 14397 deletions

View File

@@ -64,7 +64,6 @@ type Sha3xStratumJob struct {
Header string `json:"header, omitempty"`
NBits string `json:"nBits, omitempty"`
Id uint64 `json:"id, omitempty"`
JobId string `json:"job_id", omitempty`
CurTime uint64 `json:"timestamp, omitempty"`
Target string `json:"target, omitempty"`
Height uint32 `json:"height, omitempty"`
@@ -89,29 +88,6 @@ type BlockSha3xMsg struct {
SubmitIdx uint64 `json:"submitidx"`
}
type Sha3xJob struct {
JobId string
MiningHash string
Height uint64
Header string
Body string
TargetDifficulty uint64
}
type GbtSendMsg struct {
Id uint64
JobId string
MiningHash string
Header string
TargetDifficulty uint64
Height uint64
Target string
Nonce string
Extranonce1 string `json:"extranonce1, omitempty"`
Extranonce2_size uint64 `json:"extranonce2_size, omitempty"`
Extranonce2 string `json:"extranonce2, omitempty"`
}
type MonoreBlockTemplate struct {
BlockhashingBlob string `json:"blockhashing_blob"`
BlocktemplateBlob string `json:"blocktemplate_blob"`