problem: uses extended fees for blockchains with std fees only
This commit is contained in:
@@ -32,10 +32,9 @@ class EthereumLegacyFees(upstreams: EthereumMultistream, reader: EthereumReader,
|
|||||||
|
|
||||||
private val toGrpc: Function<EthereumFee, BlockchainOuterClass.EstimateFeeResponse> = Function {
|
private val toGrpc: Function<EthereumFee, BlockchainOuterClass.EstimateFeeResponse> = Function {
|
||||||
BlockchainOuterClass.EstimateFeeResponse.newBuilder()
|
BlockchainOuterClass.EstimateFeeResponse.newBuilder()
|
||||||
.setEthereumExtended(
|
.setEthereumStd(
|
||||||
BlockchainOuterClass.EthereumExtFees.newBuilder()
|
BlockchainOuterClass.EthereumStdFees.newBuilder()
|
||||||
.setMax(it.paid.amount.toString())
|
.setFee(it.paid.amount.toString())
|
||||||
.setPriority(it.priority.amount.toString())
|
|
||||||
)
|
)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user