mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
lint: gofmt -w core/block/block.go runtime/runtime.go test/helpers/context.go
This commit is contained in:
+2
-2
@@ -103,8 +103,8 @@ type ChainContext struct {
|
||||
NodeID ids.NodeID
|
||||
|
||||
// Additional fields
|
||||
XChainID ids.ID
|
||||
CChainID ids.ID
|
||||
XChainID ids.ID
|
||||
CChainID ids.ID
|
||||
UTXOAssetID ids.ID
|
||||
|
||||
// Consensus context
|
||||
|
||||
+1
-1
@@ -250,7 +250,7 @@ type IDs struct {
|
||||
ChainID ids.ID
|
||||
NodeID ids.NodeID
|
||||
PublicKey []byte
|
||||
UTXOAssetID ids.ID
|
||||
UTXOAssetID ids.ID
|
||||
ChainDataDir string `json:"chainDataDir"`
|
||||
}
|
||||
|
||||
|
||||
+12
-12
@@ -143,12 +143,12 @@ func Context(tb testing.TB, chainID ids.ID) *consensusruntime.Runtime {
|
||||
tb.Helper()
|
||||
|
||||
ctx := &consensusruntime.Runtime{
|
||||
NetworkID: 1, // Mainnet (primary network)
|
||||
ChainID: chainID,
|
||||
NodeID: ids.GenerateTestNodeID(),
|
||||
XChainID: XChainID,
|
||||
CChainID: CChainID,
|
||||
UTXOAssetID: UTXOAssetID,
|
||||
NetworkID: 1, // Mainnet (primary network)
|
||||
ChainID: chainID,
|
||||
NodeID: ids.GenerateTestNodeID(),
|
||||
XChainID: XChainID,
|
||||
CChainID: CChainID,
|
||||
UTXOAssetID: UTXOAssetID,
|
||||
}
|
||||
|
||||
// Set up a simple validator state
|
||||
@@ -166,12 +166,12 @@ func Runtime(tb testing.TB, chainID ids.ID) *runtime.Runtime {
|
||||
tb.Helper()
|
||||
|
||||
rt := &runtime.Runtime{
|
||||
NetworkID: 1, // Mainnet (primary network)
|
||||
ChainID: chainID,
|
||||
NodeID: ids.GenerateTestNodeID(),
|
||||
XChainID: XChainID,
|
||||
CChainID: CChainID,
|
||||
UTXOAssetID: UTXOAssetID,
|
||||
NetworkID: 1, // Mainnet (primary network)
|
||||
ChainID: chainID,
|
||||
NodeID: ids.GenerateTestNodeID(),
|
||||
XChainID: XChainID,
|
||||
CChainID: CChainID,
|
||||
UTXOAssetID: UTXOAssetID,
|
||||
}
|
||||
|
||||
// Set up a simple validator state
|
||||
|
||||
Reference in New Issue
Block a user