Skip to content

Commit

Permalink
chore(docker): bump to use HEAD-49fba65ce from DeFiCh/ain#1515 (#1814)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it:

As per the title.

Bump to use HEAD-49fba65ce from DeFiCh/ain#1515
to address issue from DeFiCh/ain#1509
  • Loading branch information
fuxingloh committed Oct 19, 2022
1 parent fbdb999 commit cb8aee7
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 7 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/fuxing.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion apps/rich-list-api/docker-compose.yml
Expand Up @@ -13,7 +13,7 @@ services:
POSTGRES_DB: defichainrichlist

defi-blockchain:
image: defi/defichain:HEAD-02ef6a1b3
image: defi/defichain:HEAD-49fba65ce
ports:
- "19554:19554"
command: >
Expand Down Expand Up @@ -47,3 +47,4 @@ services:
-fortcanningspringheight=13
-fortcanninggreatworldheight=14
-fortcanningepilogueheight=15
-regtest-skip-loan-collateral-validation
3 changes: 2 additions & 1 deletion apps/whale-api/docker-compose.yml
Expand Up @@ -2,7 +2,7 @@ version: '3.7'

services:
defi-blockchain:
image: defi/defichain:HEAD-02ef6a1b3
image: defi/defichain:HEAD-49fba65ce
ports:
- "19554:19554"
command: >
Expand Down Expand Up @@ -36,6 +36,7 @@ services:
-fortcanningspringheight=13
-fortcanninggreatworldheight=14
-fortcanningepilogueheight=15
-regtest-skip-loan-collateral-validation
defi-whale:
build:
Expand Down
Expand Up @@ -39,6 +39,6 @@ describe('Mining', () => {
expect(info.networkhashps).toBeGreaterThan(0)
expect(info.pooledtx).toStrictEqual(0)
expect(info.chain).toStrictEqual('regtest')
expect(info.warnings).toStrictEqual('This is a pre-release test build - use at your own risk - do not use for mining or merchant applications')
expect(info.warnings).toStrictEqual('')
})
})
Expand Up @@ -125,7 +125,13 @@ describe('Poolpair', () => {
maxPrice: 0.4
})
await expect(promise).rejects.toThrow(RpcApiError)
await expect(promise).rejects.toThrow('Price is higher than indicated')
await expect(promise).rejects.toMatchObject({
payload: {
code: -32600,
message: 'Cannot find usable pool pair. Details: Price is higher than indicated.',
method: 'testpoolswap'
}
})
})

it('testpoolswap should not affect the ori poolpair data', async () => {
Expand Down Expand Up @@ -175,6 +181,12 @@ describe('Poolpair', () => {
tokenTo: 'DFI'
})
await expect(promise).rejects.toThrow(RpcApiError)
await expect(promise).rejects.toThrow('Lack of liquidity')
await expect(promise).rejects.toMatchObject({
payload: {
code: -32600,
message: 'Cannot find usable pool pair. Details: Lack of liquidity.',
method: 'testpoolswap'
}
})
})
})
2 changes: 1 addition & 1 deletion packages/testcontainers/src/containers/DeFiDContainer.ts
Expand Up @@ -35,7 +35,7 @@ export abstract class DeFiDContainer extends DockerContainer {
if (process?.env?.DEFICHAIN_DOCKER_IMAGE !== undefined) {
return process.env.DEFICHAIN_DOCKER_IMAGE
}
return 'defi/defichain:HEAD-02ef6a1b3'
return 'defi/defichain:HEAD-49fba65ce'
}

public static readonly DefaultStartOptions = {
Expand Down
Expand Up @@ -39,7 +39,8 @@ export class RegTestContainer extends DeFiDContainer {
'-fortcanningcrunchheight=12',
'-fortcanningspringheight=13',
'-fortcanninggreatworldheight=14',
'-fortcanningepilogueheight=15'
'-fortcanningepilogueheight=15',
'-regtest-skip-loan-collateral-validation'
]

if (opts.startFlags != null && opts.startFlags.length > 0) {
Expand Down

0 comments on commit cb8aee7

Please sign in to comment.