Skip to content

Commit

Permalink
rand wsport and ethrpcport
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Jun 24, 2024
1 parent 5f57626 commit 329bff2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/whale-api/src/e2e.defid.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class DefidOceanApiClient {
},
body: JSON.stringify(body)
})
console.log('res: ', res)
const json = await res.json()
raiseIfError(json)
return json
Expand Down Expand Up @@ -631,6 +632,8 @@ export class DefidBin {
port = this.randomPort()

rpcPort = this.randomPort()
wsPort = this.randomPort()
ethRpcPort = this.randomPort()
rpcUrl = `http://test:[email protected]:${this.rpcPort}`
rpcClient = new DefidRpcClient(this.rpcUrl)
rpc = new DefidRpc(this, this.rpcClient)
Expand All @@ -654,13 +657,12 @@ export class DefidBin {
// prepend
`-datadir=${this.tmpDir}`,
'-printtoconsole',
'-rpcallowip=0.0.0.0/0',
'-rpcbind=0.0.0.0',
'-rpcworkqueue=512',
'-rpcuser=test',
'-rpcpassword=test',
`-rpcport=${this.rpcPort}`,
`-port=${this.port}`,
`-wsport=${this.wsPort}`,
`-ethrpcport=${this.ethRpcPort}`,
// regtest
'-regtest',
'-jellyfish_regtest',
Expand All @@ -680,6 +682,7 @@ export class DefidBin {
`-oceanarchiveport=${this.oceanPort}`,
...opts
]
console.log('args: ', args)

const extraArgs = [
'-amkheight=0',
Expand Down

0 comments on commit 329bff2

Please sign in to comment.