Make it official that we support exactly 19 validators

Fixes #86
This commit is contained in:
Leo 2021-01-11 15:07:24 +01:00
parent 6321ca2a49
commit ad5950ffe7
1 changed files with 2 additions and 4 deletions

View File

@ -4,12 +4,10 @@ import (
"github.com/ethereum/go-ethereum/common"
)
// TODO: this should be 20, https://github.com/certusone/wormhole/issues/86
//
// Matching constants:
// - MAX_LEN_GUARDIAN_KEYS in Solana contract
// - MAX_LEN_GUARDIAN_KEYS in Solana contract (limited by transaction size - 19 is the maximum amount possible)
//
// The Eth and Terra contracts do not specify a maximum number and support more than 20,
// The Eth and Terra contracts do not specify a maximum number and support more than that,
// but presumably, chain-specific transaction size limits will apply at some point (untested).
const MaxGuardianCount = 19