Fix devnet
Change-Id: I1d62e6323cc2169cce43581f9aeefb537bc84a76
This commit is contained in:
parent
60775101c5
commit
c0228415f8
|
@ -121,19 +121,13 @@ func (s *SolanaWatcher) Run(ctx context.Context) error {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Memcmp: &rpc.RPCFilterMemcmp{
|
Memcmp: &rpc.RPCFilterMemcmp{
|
||||||
Offset: 4, // Start of the Persist flag
|
Offset: 4, // Start of the ConsistencyLevel value
|
||||||
Bytes: solana.Base58{0x01}, // Only grab messages that need to be persisted
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Memcmp: &rpc.RPCFilterMemcmp{
|
|
||||||
Offset: 5, // Start of the ConsistencyLevel value
|
|
||||||
Bytes: solana.Base58{32}, // Only grab messages that require max confirmations
|
Bytes: solana.Base58{32}, // Only grab messages that require max confirmations
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Memcmp: &rpc.RPCFilterMemcmp{
|
Memcmp: &rpc.RPCFilterMemcmp{
|
||||||
Offset: 6, // Offset of VaaTime
|
Offset: 5, // Offset of VaaTime
|
||||||
Bytes: solana.Base58{0, 0, 0, 0}, // This means this VAA hasn't been signed yet
|
Bytes: solana.Base58{0, 0, 0, 0}, // This means this VAA hasn't been signed yet
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -158,19 +152,13 @@ func (s *SolanaWatcher) Run(ctx context.Context) error {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Memcmp: &rpc.RPCFilterMemcmp{
|
Memcmp: &rpc.RPCFilterMemcmp{
|
||||||
Offset: 4, // Start of the Persist flag
|
Offset: 4, // Start of the ConsistencyLevel value
|
||||||
Bytes: solana.Base58{0x01}, // Only grab messages that need to be persisted
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Memcmp: &rpc.RPCFilterMemcmp{
|
|
||||||
Offset: 5, // Start of the ConsistencyLevel value
|
|
||||||
Bytes: solana.Base58{1}, // Only grab messages that require the Confirmed level
|
Bytes: solana.Base58{1}, // Only grab messages that require the Confirmed level
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Memcmp: &rpc.RPCFilterMemcmp{
|
Memcmp: &rpc.RPCFilterMemcmp{
|
||||||
Offset: 6, // Offset of VaaTime
|
Offset: 5, // Offset of VaaTime
|
||||||
Bytes: solana.Base58{0, 0, 0, 0}, // This means this VAA hasn't been signed yet
|
Bytes: solana.Base58{0, 0, 0, 0}, // This means this VAA hasn't been signed yet
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -186,7 +174,7 @@ func (s *SolanaWatcher) Run(ctx context.Context) error {
|
||||||
// Merge accounts
|
// Merge accounts
|
||||||
accounts := append(fAccounts, cAccounts...)
|
accounts := append(fAccounts, cAccounts...)
|
||||||
|
|
||||||
logger.Debug("fetched transfer proposals without VAA",
|
logger.Info("fetched transfer proposals without VAA",
|
||||||
zap.Int("n", len(accounts)),
|
zap.Int("n", len(accounts)),
|
||||||
zap.Duration("took", time.Since(start)),
|
zap.Duration("took", time.Since(start)),
|
||||||
)
|
)
|
||||||
|
@ -220,7 +208,6 @@ func (s *SolanaWatcher) Run(ctx context.Context) error {
|
||||||
EmitterChain: vaa.ChainIDSolana,
|
EmitterChain: vaa.ChainIDSolana,
|
||||||
EmitterAddress: proposal.EmitterAddress,
|
EmitterAddress: proposal.EmitterAddress,
|
||||||
Payload: proposal.Payload,
|
Payload: proposal.Payload,
|
||||||
Persist: proposal.Persist == 1,
|
|
||||||
ConsistencyLevel: proposal.ConsistencyLevel,
|
ConsistencyLevel: proposal.ConsistencyLevel,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,7 +232,6 @@ type (
|
||||||
MessagePublicationAccount struct {
|
MessagePublicationAccount struct {
|
||||||
VaaVersion uint8
|
VaaVersion uint8
|
||||||
// Borsh does not seem to support booleans, so 0=false / 1=true
|
// Borsh does not seem to support booleans, so 0=false / 1=true
|
||||||
Persist uint8
|
|
||||||
ConsistencyLevel uint8
|
ConsistencyLevel uint8
|
||||||
VaaTime uint32
|
VaaTime uint32
|
||||||
VaaSignatureAccount vaa.Address
|
VaaSignatureAccount vaa.Address
|
||||||
|
|
|
@ -63,7 +63,6 @@ spec:
|
||||||
- bridge
|
- bridge
|
||||||
- --ethRPC
|
- --ethRPC
|
||||||
- ws://eth-devnet:8545
|
- ws://eth-devnet:8545
|
||||||
- --terra
|
|
||||||
- --terraWS
|
- --terraWS
|
||||||
- ws://terra-terrad:26657/websocket
|
- ws://terra-terrad:26657/websocket
|
||||||
- --terraLCD
|
- --terraLCD
|
||||||
|
|
|
@ -13,6 +13,7 @@ WORKDIR /home/node/app
|
||||||
# Only invalidate the npm install step if package.json changed
|
# Only invalidate the npm install step if package.json changed
|
||||||
ADD --chown=node:node package.json .
|
ADD --chown=node:node package.json .
|
||||||
ADD --chown=node:node package-lock.json .
|
ADD --chown=node:node package-lock.json .
|
||||||
|
ADD --chown=node:node .env.test .env
|
||||||
|
|
||||||
# We want to cache node_modules *and* incorporate it into the final image.
|
# We want to cache node_modules *and* incorporate it into the final image.
|
||||||
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
|
||||||
|
|
|
@ -44,7 +44,7 @@ spl-token mint "$token" 10000000000 "$account"
|
||||||
|
|
||||||
# Create the bridge contract at a known address
|
# Create the bridge contract at a known address
|
||||||
# OK to fail on subsequent attempts (already created).
|
# OK to fail on subsequent attempts (already created).
|
||||||
retry client create-bridge "$bridge_address" "$initial_guardian" 86400 100 200
|
retry client create-bridge "$bridge_address" "$initial_guardian" 86400 100
|
||||||
|
|
||||||
# Let k8s startup probe succeed
|
# Let k8s startup probe succeed
|
||||||
nc -l -p 2000
|
nc -l -p 2000
|
||||||
|
|
Loading…
Reference in New Issue