dashpay / platform

L2 solution for seriously fast decentralized applications for the Dash network
https://dashplatform.readme.io/docs/introduction-what-is-dash-platform
MIT License
72 stars 39 forks source link

Contested resource prefunding voting balance is not added up to transaction fee #2240

Open pshenmic opened 2 weeks ago

pshenmic commented 2 weeks ago

Expected Behavior

When people vote for a contested resources they lock some credits in, but it is not added up to the transaction gas fee in the Tenderdash protocol. That makes it unable to see overall fee used in the transaction.

Current Behavior

Transaction fee in the Tenderdash RPC TX query returns only fee burnt during the transaction itself and does not include prefunding voting balance

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

  1. Create a DPNS name
  2. Get a transaction hash of domain document
  3. Query a transaction from Tenderdash RPC, and check gas_used field

Example: https://platform-explorer.com/transaction/5DD4C6D80FB74C7E33F7119D5C412695AF79368ECF15228EAE67CDAF5B3D7732

shumkov commented 2 weeks ago

@QuantumExplorer please address