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

Replace --network-type to --planet-id #2275

Draft
wants to merge 1 commit into
base: release/72
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion NineChronicles.Headless.Tests/Common/ServiceBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public static NineChroniclesNodeService CreateNineChroniclesNodeService(
privateKey,
properties,
BlockPolicy,
NetworkType.Test,
StaticActionLoaderSingleton.Instance);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ private void ConfigureNineChroniclesNodeService()
IceServers = new List<IceServer>(),
},
NineChroniclesNodeService.GetBlockPolicy(NetworkType.Test, StaticActionLoaderSingleton.Instance),
NetworkType.Test,
StaticActionLoaderSingleton.Instance);
}
}
Expand Down
10 changes: 5 additions & 5 deletions NineChronicles.Headless.Tests/GraphTypes/StandaloneQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public async Task ActivationStatus(bool existsActivatedAccounts)
var blockPolicy = NineChroniclesNodeService.GetTestBlockPolicy();

var service = new NineChroniclesNodeService(
userPrivateKey, properties, blockPolicy, NetworkType.Test, StaticActionLoaderSingleton.Instance);
userPrivateKey, properties, blockPolicy, StaticActionLoaderSingleton.Instance);
StandaloneContextFx.NineChroniclesNodeService = service;
StandaloneContextFx.BlockChain = service.Swarm?.BlockChain;

Expand Down Expand Up @@ -896,7 +896,7 @@ public async Task ActivationKeyNonce(bool trim)
};

var blockPolicy = NineChroniclesNodeService.GetBlockPolicy(NetworkType.Test, StaticActionLoaderSingleton.Instance);
var service = new NineChroniclesNodeService(userPrivateKey, properties, blockPolicy, NetworkType.Test, StaticActionLoaderSingleton.Instance);
var service = new NineChroniclesNodeService(userPrivateKey, properties, blockPolicy, StaticActionLoaderSingleton.Instance);
StandaloneContextFx.NineChroniclesNodeService = service;
StandaloneContextFx.BlockChain = service.Swarm?.BlockChain;

Expand Down Expand Up @@ -984,7 +984,7 @@ public async Task ActivationKeyNonce_Throw_ExecutionError(string code, string ms
};
var blockPolicy = NineChroniclesNodeService.GetTestBlockPolicy();

var service = new NineChroniclesNodeService(userPrivateKey, properties, blockPolicy, NetworkType.Test, StaticActionLoaderSingleton.Instance);
var service = new NineChroniclesNodeService(userPrivateKey, properties, blockPolicy, StaticActionLoaderSingleton.Instance);
StandaloneContextFx.NineChroniclesNodeService = service;
StandaloneContextFx.BlockChain = service.Swarm?.BlockChain;

Expand Down Expand Up @@ -1062,7 +1062,7 @@ public async Task Balance()
};
var blockPolicy = NineChroniclesNodeService.GetTestBlockPolicy();

var service = new NineChroniclesNodeService(userPrivateKey, properties, blockPolicy, NetworkType.Test, StaticActionLoaderSingleton.Instance);
var service = new NineChroniclesNodeService(userPrivateKey, properties, blockPolicy, StaticActionLoaderSingleton.Instance);
StandaloneContextFx.NineChroniclesNodeService = service;
StandaloneContextFx.BlockChain = service.Swarm?.BlockChain;

Expand Down Expand Up @@ -1171,7 +1171,7 @@ private NineChroniclesNodeService MakeNineChroniclesNodeService(PrivateKey priva
ConsensusPeers = ImmutableList<BoundPeer>.Empty,
};

return new NineChroniclesNodeService(privateKey, properties, blockPolicy, NetworkType.Test, StaticActionLoaderSingleton.Instance);
return new NineChroniclesNodeService(privateKey, properties, blockPolicy, StaticActionLoaderSingleton.Instance);
}

private (ProtectedPrivateKey, string) CreateProtectedPrivateKey()
Expand Down
2 changes: 0 additions & 2 deletions NineChronicles.Headless/NineChroniclesNodeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public NineChroniclesNodeService(
PrivateKey? minerPrivateKey,
LibplanetNodeServiceProperties properties,
IBlockPolicy blockPolicy,
NetworkType networkType,
IActionLoader actionLoader,
Progress<BlockSyncState>? preloadProgress = null,
bool ignoreBootstrapFailure = false,
Expand Down Expand Up @@ -208,7 +207,6 @@ StandaloneContext context
properties.MinerPrivateKey,
properties.Libplanet,
blockPolicy,
properties.NetworkType,
properties.ActionLoader,
preloadProgress: progress,
ignoreBootstrapFailure: properties.IgnoreBootstrapFailure,
Expand Down
Loading