Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateQuorum ¶
CalculateQuorum returns the minimum number of guardians that need to sign a VAA for a given guardian set.
The canonical source is the calculation in the contracts (solana/bridge/src/processor.rs and ethereum/contracts/Wormhole.sol), and this needs to match the implementation in the contracts.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func NewProcessor( ctx context.Context, db *db.Database, lockC chan *common.MessagePublication, setC chan *common.GuardianSet, sendC chan []byte, obsvC chan *gossipv1.SignedObservation, obsvReqSendC chan<- *gossipv1.ObservationRequest, injectC chan *vaa.VAA, signedInC chan *gossipv1.SignedVAAWithQuorum, guardianSigner ecdsasigner.ECDSASigner, gst *common.GuardianSetState, attestationEvents *reporter.AttestationEventReporter, notifier *discord.DiscordNotifier, governanceChainId vaa.ChainID, governanceEmitterAddress vaa.Address, ) *Processor
Click to show internal directories.
Click to hide internal directories.