Class ScheduleNetworkUpgradeParams
Transaction parameters for scheduling a previously prepared network upgrade.
Inheritance
ScheduleNetworkUpgradeParams
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class ScheduleNetworkUpgradeParams : TransactionParams<TransactionReceipt>
Examples
Step 2 of the upgrade flow: commit to the consensus timestamp at which every node will bounce and load the staged upgrade:
// After a successful PrepareNetworkUpgrade, commit to a consensus
// timestamp when nodes will bounce and load the new image.
var receipt = await client.ScheduleNetworkUpgradeAsync(new ScheduleNetworkUpgradeParams
{
Consensus = new ConsensusTimeStamp(DateTime.UtcNow.AddHours(2))
});
Console.WriteLine($"Schedule status: {receipt.Status}");
Properties
| Edit this page View SourceCancellationToken
An optional cancellation token that can be used to interrupt the transaction.
Declaration
public CancellationToken? CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken? |
Consensus
The time of consensus that nodes will stop services, this date must be in the future relative to the submission of this transaction.
Declaration
public ConsensusTimeStamp Consensus { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsensusTimeStamp |
Signatory
Optional additional signatories.
Declaration
public Signatory? Signatory { get; set; }
Property Value
| Type | Description |
|---|---|
| Signatory |