public class BFTSmartUniquenessProvider implements UniquenessProvider
A interface UniquenessProvider
based on the bft-smart library.
Experimental, not ready for production yet.
A class BFTSmartUniquenessProvider
starts a class BFTSmartServer
that joins the notary cluster and stores committed input
states and a class BFTSmartClient
to commit states to the notary cluster.
Modifier and Type | Class and Description |
---|---|
static class |
BFTSmartUniquenessProvider.Companion |
UniquenessProvider.Conflict, UniquenessProvider.ConsumingTx
Modifier and Type | Field and Description |
---|---|
static BFTSmartUniquenessProvider.Companion |
Companion |
Constructor and Description |
---|
BFTSmartUniquenessProvider(com.google.common.net.HostAndPort myAddress,
java.util.List<com.google.common.net.HostAndPort> clusterAddresses,
org.jetbrains.exposed.sql.Database db)
A
interface UniquenessProvider based on the bft-smart library. |
Modifier and Type | Method and Description |
---|---|
void |
commit(java.util.List<net.corda.core.contracts.StateRef> states,
SecureHash txId,
Party callerIdentity)
Throws UniquenessException if conflict is detected
|
java.util.List<com.google.common.net.HostAndPort> |
getClusterAddresses() |
org.jetbrains.exposed.sql.Database |
getDb() |
com.google.common.net.HostAndPort |
getMyAddress() |
commit
public static BFTSmartUniquenessProvider.Companion Companion
public BFTSmartUniquenessProvider(com.google.common.net.HostAndPort myAddress, java.util.List<com.google.common.net.HostAndPort> clusterAddresses, org.jetbrains.exposed.sql.Database db)
A interface UniquenessProvider
based on the bft-smart library.
Experimental, not ready for production yet.
A class BFTSmartUniquenessProvider
starts a class BFTSmartServer
that joins the notary cluster and stores committed input
states and a class BFTSmartClient
to commit states to the notary cluster.
clusterAddresses
- the addresses of all BFTSmartUniquenessProviders of the notary clustermyAddress
- the address of this uniqueness provider, must be listed in clusterAddressesinterface UniquenessProvider
,
bft-smart library,
class BFTSmartUniquenessProvider
,
class BFTSmartServer
,
class BFTSmartClient
public void commit(java.util.List<net.corda.core.contracts.StateRef> states, SecureHash txId, Party callerIdentity)
Throws UniquenessException if conflict is detected
public com.google.common.net.HostAndPort getMyAddress()
public java.util.List<com.google.common.net.HostAndPort> getClusterAddresses()
public org.jetbrains.exposed.sql.Database getDb()