Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trimming changes and getting ready for the next hard fork #2355

Merged
merged 9 commits into from
Nov 15, 2024
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ func SetQuaiConfig(stack *node.Node, cfg *quaiconfig.Config, slicesRunning []com
cfg.GenesisNonce = viper.GetUint64(GenesisNonce.Name)

cfg.Miner.WorkShareMining = viper.GetBool(WorkShareMiningFlag.Name)
cfg.Miner.WorkShareThreshold = params.WorkSharesThresholdDiff + viper.GetInt(WorkShareThresholdFlag.Name)
cfg.Miner.WorkShareThreshold = params.NewWorkSharesThresholdDiff + viper.GetInt(WorkShareThresholdFlag.Name)
if viper.GetString(WorkShareMinerEndpoints.Name) != "" {
cfg.Miner.Endpoints = []string{viper.GetString(WorkShareMinerEndpoints.Name)}
}
Expand Down
228 changes: 228 additions & 0 deletions cmd/utils/hc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions cmd/utils/hc.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
syntax = "proto3";

package hc;
option go_package = "github.com/dominant-strategies/go-quai/cmd/utils";

import "common/proto_common.proto";

message ProtoNode {
optional common.ProtoHash hash = 1;
repeated bytes number = 2;
optional common.ProtoLocation location = 3;
optional bytes entropy = 4;
}

message ProtoNodeSet {
map<string, ProtoNode> node_set = 1;
}
Loading
Loading