-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add get_harvesters for the farmer, and consolidate the Plot definitio…
…n to the protocol version
- Loading branch information
1 parent
6e25810
commit 8e649e5
Showing
4 changed files
with
84 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package protocols | ||
|
||
import ( | ||
"github.com/samber/mo" | ||
|
||
"github.com/chia-network/go-chia-libs/pkg/types" | ||
) | ||
|
||
// Plot is the plot definition in the harvester protocol | ||
// https://github.com/Chia-Network/chia-blockchain/blob/main/chia/protocols/harvester_protocol.py#L78 | ||
type Plot struct { | ||
Filename string `json:"filename"` | ||
Size uint8 `json:"size"` | ||
PlotID types.Bytes32 `json:"plot_id"` | ||
PoolPublicKey mo.Option[types.G1Element] `json:"pool_public_key"` | ||
PoolContractPuzzleHash mo.Option[types.Bytes32] `json:"pool_contract_puzzle_hash"` | ||
PlotPublicKey types.G1Element `json:"plot_public_key"` | ||
FileSize uint64 `json:"file_size"` | ||
TimeModified types.Timestamp `json:"time_modified"` | ||
CompressionLevel mo.Option[uint8] `json:"compression_level"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters