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, injectC chan *vaa.VAA, signedInC chan *gossipv1.SignedVAAWithQuorum, gk *ecdsa.PrivateKey, gst *common.GuardianSetState, devnetMode bool, devnetNumGuardians uint, devnetEthRPC string, terraLCD string, terraContract string, attestationEvents *reporter.AttestationEventReporter, notifier *discord.DiscordNotifier, ) *Processor
Click to show internal directories.
Click to hide internal directories.