mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
new file: cmd/geth/consensus/hybrid.go new file: cmd/geth/core/blockchain.go modified: cmd/geth/main.go new file: cmd/geth/tests/hybrid_test.go new file: consensus/hybrid-consensus/consensus.go new file: consensus/hybrid-consensus/consensus_test.go new file: consensus/hybrid-consensus/go.mod new file: consensus/hybrid-consensus/hybridconsensus.go new file: consensus/hybrid-consensus/metrics.go new file: consensus/hybrid-consensus/validators.go
22 lines
347 B
Go
22 lines
347 B
Go
package consensus
|
||
|
||
import "log"
|
||
|
||
type HybridConsensus struct {
|
||
PoW *ProofOfWork
|
||
PoS *ProofOfStake
|
||
}
|
||
|
||
type ProofOfWork struct {
|
||
// PoW ile ilgili alanlar
|
||
}
|
||
|
||
type ProofOfStake struct {
|
||
// PoS ile ilgili alanlar
|
||
}
|
||
|
||
func (h *HybridConsensus) Start() {
|
||
log.Println("Hybrid konsensüs başlatıldı.")
|
||
// Başlatma işlemleri
|
||
}
|
||
|