Skip to content

Commit

Permalink
Remove fee checks, ignore possible ibc ledger error, make vspn utilit…
Browse files Browse the repository at this point in the history
…y coin in configs
  • Loading branch information
nullpointer0x00 committed Nov 6, 2023
1 parent 925ad9d commit 5c70196
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ fun Any.getTxIbcClientChannel() =

fun Any.getIbcLedgerMsgs() =
when {
typeUrl.endsWith("MsgInbTransferRequest") ||
typeUrl.endsWith("MsgIbcTransferRequest") ||
typeUrl.endsWith("MsgTransfer") ||
typeUrl.endsWith("MsgRecvPacket") ||
typeUrl.endsWith("MsgAcknowledgement") ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,16 @@ class AsyncCachingV2(
val txUpdate = TxUpdate(tx)
val txInfo = TxData(proposerRec.blockHeight, null, res.txResponse.txhash, blockTime)
saveMessages(txInfo, res, txUpdate)
saveTxFees(res, txInfo, txUpdate, proposerRec)
// saveTxFees(res, txInfo, txUpdate, proposerRec)
val addrs = saveAddresses(txInfo, res, txUpdate)
val markers = saveMarkers(txInfo, res, txUpdate)
saveNftData(txInfo, res, txUpdate)
saveGovData(res, txInfo, txUpdate)
saveIbcChannelData(res, txInfo, txUpdate)
try {
saveIbcChannelData(res, txInfo, txUpdate)
} catch (e: Exception) {
logger.info("exception saving ibc data $e")
}
saveSmartContractData(res, txInfo, txUpdate)
saveNameData(res, txInfo)
saveGroups(res, txInfo, txUpdate)
Expand Down Expand Up @@ -868,11 +872,12 @@ class AsyncCachingV2(
when (pair.first) {
GroupGovMsgType.PROPOSAL -> {
// Have to find the proposalId in the log events
val proposalId = tx.mapEventAttrValues(
val proposalIdB = tx.mapEventAttrValues(
idx,
GroupProposalEvents.GROUP_SUBMIT_PROPOSAL.event,
GroupProposalEvents.GROUP_SUBMIT_PROPOSAL.idField.toList()
)[GroupProposalEvents.GROUP_SUBMIT_PROPOSAL.idField.first()]!!.toLong()
)[GroupProposalEvents.GROUP_SUBMIT_PROPOSAL.idField.first()]
val proposalId = proposalIdB!!.toLong()

val msg = pair.second.toMsgSubmitProposalGroup()
val nodeData = groupService.proposalAtHeight(proposalId, txInfo.blockHeight)?.proposal
Expand Down
4 changes: 2 additions & 2 deletions service/src/main/resources/application-development.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ explorer.upgrade-github-repo=provenance-io/provenance
explorer.hidden-apis=false
explorer.swagger-url=localhost:8612
explorer.swagger-protocol=http
explorer.utility-token=nhash
explorer.utility-token-default-gas-price=1905
explorer.utility-token=vspn
explorer.utility-token-default-gas-price=0
## Used to format for DecCoins; should reflect the number of zeroes between base denom and display denom
explorer.utility-token-base-decimal-places=9
## Used to format the voting power; should reflect the difference of zeroes between the voting power setup and base denom
Expand Down

0 comments on commit 5c70196

Please sign in to comment.