Promote Pythnet to Mainnet (#1459)
* node/cmd/guardiand: pythnet for mainnet Pythnet is a read only chain that will only use the core bridge to transfer messages to other chains. No tokens will be transferred to pythnet, so it has no token or nft bridge. * node/cmd/guardiand: fix help for solana flags
This commit is contained in:
parent
c62287b6e0
commit
dc28f88218
|
@ -125,6 +125,12 @@ spec:
|
|||
# - ws://solana-devnet:8900
|
||||
# - --solanaRPC
|
||||
# - http://solana-devnet:8899
|
||||
- --pythnetContract
|
||||
- Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
|
||||
# - --pythnetWS
|
||||
# - ws://solana-devnet:8900
|
||||
# - --pythnetRPC
|
||||
# - http://solana-devnet:8899
|
||||
- --unsafeDevMode
|
||||
- --guardianKey
|
||||
- /tmp/bridge.key
|
||||
|
|
|
@ -615,10 +615,10 @@ func runNode(cmd *cobra.Command, args []string) {
|
|||
logger.Fatal("Please specify --solanaContract")
|
||||
}
|
||||
if *solanaWsRPC == "" {
|
||||
logger.Fatal("Please specify --solanaWsUrl")
|
||||
logger.Fatal("Please specify --solanaWS")
|
||||
}
|
||||
if *solanaRPC == "" {
|
||||
logger.Fatal("Please specify --solanaUrl")
|
||||
logger.Fatal("Please specify --solanaRPC")
|
||||
}
|
||||
|
||||
if *terraWS == "" {
|
||||
|
@ -657,16 +657,14 @@ func runNode(cmd *cobra.Command, args []string) {
|
|||
logger.Fatal("Please specify --algorandAppID")
|
||||
}
|
||||
|
||||
if *testnetMode {
|
||||
if *pythnetContract == "" {
|
||||
logger.Fatal("Please specify --pythnetContract")
|
||||
}
|
||||
if *pythnetWsRPC == "" {
|
||||
logger.Fatal("Please specify --pythnetWsUrl")
|
||||
}
|
||||
if *pythnetRPC == "" {
|
||||
logger.Fatal("Please specify --pythnetUrl")
|
||||
}
|
||||
if *pythnetContract == "" {
|
||||
logger.Fatal("Please specify --pythnetContract")
|
||||
}
|
||||
if *pythnetWsRPC == "" {
|
||||
logger.Fatal("Please specify --pythnetWS")
|
||||
}
|
||||
if *pythnetRPC == "" {
|
||||
logger.Fatal("Please specify --pythnetRPC")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -730,11 +728,9 @@ func runNode(cmd *cobra.Command, args []string) {
|
|||
logger.Fatal("invalid Solana contract address", zap.Error(err))
|
||||
}
|
||||
var pythnetAddress solana_types.PublicKey
|
||||
if *testnetMode {
|
||||
pythnetAddress, err = solana_types.PublicKeyFromBase58(*pythnetContract)
|
||||
if err != nil {
|
||||
logger.Fatal("invalid PythNet contract address", zap.Error(err))
|
||||
}
|
||||
pythnetAddress, err = solana_types.PublicKeyFromBase58(*pythnetContract)
|
||||
if err != nil {
|
||||
logger.Fatal("invalid PythNet contract address", zap.Error(err))
|
||||
}
|
||||
|
||||
// In devnet mode, we generate a deterministic guardian key and write it to disk.
|
||||
|
@ -826,12 +822,12 @@ func runNode(cmd *cobra.Command, args []string) {
|
|||
chainObsvReqC[vaa.ChainIDAcala] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDKlaytn] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDCelo] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDPythNet] = make(chan *gossipv1.ObservationRequest)
|
||||
if *testnetMode {
|
||||
chainObsvReqC[vaa.ChainIDMoonbeam] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDNeon] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDEthereumRopsten] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDInjective] = make(chan *gossipv1.ObservationRequest)
|
||||
chainObsvReqC[vaa.ChainIDPythNet] = make(chan *gossipv1.ObservationRequest)
|
||||
}
|
||||
go handleReobservationRequests(rootCtx, clock.New(), logger, obsvReqC, chainObsvReqC)
|
||||
|
||||
|
|
Loading…
Reference in New Issue