solution: goerli support

Co-authored-by: Chase Wright <mysticryuujin@protonmail.com>
This commit is contained in:
Igor Artamonov
2020-08-23 20:19:00 -04:00
committed by GitHub
parent d9fd0619b3
commit 64c8cb35f3
13 changed files with 30 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ class BlockchainTypeSpec extends Specification {
expect:
BlockchainType.fromBlockchain(chain) == BlockchainType.ETHEREUM
where:
chain << [Chain.ETHEREUM, Chain.ETHEREUM_CLASSIC, Chain.TESTNET_KOVAN, Chain.TESTNET_MORDEN]
chain << [Chain.ETHEREUM, Chain.ETHEREUM_CLASSIC, Chain.TESTNET_KOVAN, Chain.TESTNET_GOERLI, Chain.TESTNET_MORDEN]
}
def "Correct type for bitcoin"() {

View File

@@ -51,7 +51,7 @@ class MainConfigReaderSpec extends Specification {
port == 8082
tls != null
routes != null
routes.size() == 3
routes.size() == 4
with(routes[0]) {
id == "eth"
blockchain == Chain.ETHEREUM
@@ -64,6 +64,10 @@ class MainConfigReaderSpec extends Specification {
id == "kovan"
blockchain == Chain.TESTNET_KOVAN
}
with(routes[3]) {
id == "goerli"
blockchain == Chain.TESTNET_GOERLI
}
}
act.upstreams != null
with(act.upstreams) {

View File

@@ -22,5 +22,6 @@ class DefaultEthereumMethodsSpec extends Specification {
Chain.ETHEREUM | '"0x0"'
Chain.ETHEREUM_CLASSIC | '"0x3d"'
Chain.TESTNET_KOVAN | '"0x2a"'
Chain.TESTNET_GOERLI | '"0x5"'
}
}

View File

@@ -33,6 +33,8 @@ proxy:
blockchain: ethereum_classic
- id: kovan
blockchain: kovan
- id: goerli
blockchain: goerli
cluster:
defaults: