Skip to content

Commit

Permalink
testnet: update node rc, flags for arabica-9 (#157)
Browse files Browse the repository at this point in the history
* testnet: update node rc, flags for arabica-9

* go mod: bump go-cnc to 0.4.2-pre

* testnet: bump celestia-node to v0.11.0-rc6

* txmgr: submit pfb - handle unexpected response code; bump fee

* nit: typo

* go mod: bump go-cnc to v0.4.2

* txmgr: submit pfb - handle unexpected response - check tx hash

* txmgr: bump gas limit

* txmgr: add additional height sanity check
  • Loading branch information
tuxcanfly authored Jul 10, 2023
1 parent 8b75f95 commit b2dfd46
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/btcsuite/btcd v0.23.3
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1
github.com/celestiaorg/go-cnc v0.4.1
github.com/celestiaorg/go-cnc v0.4.2
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0
github.com/docker/docker v20.10.24+incompatible
github.com/docker/go-connections v0.4.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtE
github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s=
github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34=
github.com/celestiaorg/go-cnc v0.4.1 h1:7fz8Y8HKKxE2dCp2m9Qlm+NoROxJWGCiKtcvaYp8iM8=
github.com/celestiaorg/go-cnc v0.4.1/go.mod h1:zYzvHudSd1iNPuHBMyvZ1YvWou5aT9JXgtch9Tkaf70=
github.com/celestiaorg/go-cnc v0.4.2 h1:7ixf3tevMB7Lvz2mbyRG0ZOK+8qoPm7wNhdgpi8VreU=
github.com/celestiaorg/go-cnc v0.4.2/go.mod h1:zYzvHudSd1iNPuHBMyvZ1YvWou5aT9JXgtch9Tkaf70=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk=
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
Expand Down
6 changes: 5 additions & 1 deletion op-service/txmgr/txmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,16 @@ func (m *SimpleTxManager) send(ctx context.Context, candidate TxCandidate) (*typ
// frame pointer to celestia, while retaining the proposer pathway that
// writes the state commitment data to ethereum.
if candidate.To.Hex() == "0xfF00000000000000000000000000000000000000" {
res, err := m.daClient.SubmitPFB(ctx, m.namespace, candidate.TxData, 70000, 700000)
res, err := m.daClient.SubmitPFB(ctx, m.namespace, candidate.TxData, 200000, 2000000)
if err != nil {
m.l.Warn("unable to publish tx to celestia", "err", err)
return nil, err
}
fmt.Printf("res: %v\n", res)
if res.Code != 0 || res.TxHash == "" || res.Height == 0 {
m.l.Warn("unexpected response from celestia got", "res.Code", res.Code, "res.TxHash", res.TxHash, "res.Height", res.Height)
return nil, errors.New("unexpected response code")
}

height := res.Height

Expand Down
6 changes: 3 additions & 3 deletions ops-bedrock/docker-compose-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ services:
container_name: celestia-light-node
user: root
platform: "${PLATFORM}"
image: "ghcr.io/celestiaorg/celestia-node:v0.11.0-rc2"
command: celestia light start --core.ip consensus-full-arabica-8.celestia-arabica.com --gateway --gateway.addr da --gateway.port 26659 --p2p.network arabica
image: "ghcr.io/celestiaorg/celestia-node:v0.11.0-rc6"
command: celestia light start --core.ip consensus-full-arabica-9.celestia-arabica.com --gateway --gateway.addr da --gateway.port 26659 --gateway.deprecated-endpoints --p2p.network arabica
environment:
- NODE_TYPE=light
- P2P_NETWORK=arabica
volumes:
- $HOME/.celestia-light-arabica-8/:/home/celestia/.celestia-light-arabica-8/
- $HOME/.celestia-light-arabica-9/:/home/celestia/.celestia-light-arabica-9/
ports:
- "26657:26657"
- "26659:26659"
Expand Down

0 comments on commit b2dfd46

Please sign in to comment.