public class Config extends Object
| Constructor and Description |
|---|
Config(byte[] buf) |
Config(java.time.Duration blockInterval)
This instantiates a new configuration to be used in the omniledger constructor.
|
Config(OmniLedgerProto.ChainConfig config)
Instantiates from an existing protobuf representation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
java.time.Duration |
getBlockInterval() |
OmniLedgerProto.ChainConfig |
toProto() |
public Config(java.time.Duration blockInterval)
blockInterval - - how often the blocks should be createdpublic Config(OmniLedgerProto.ChainConfig config)
public Config(byte[] buf)
throws CothorityCommunicationException
CothorityCommunicationExceptionpublic java.time.Duration getBlockInterval()
public OmniLedgerProto.ChainConfig toProto()
Copyright © 2018. All rights reserved.