zend_oo icon indicating copy to clipboard operation
zend_oo copied to clipboard

send_certificate RPC command higher quality cert dependency

Open i-Alex opened this issue 3 years ago • 0 comments

During the certificate submission window for given sidechain a user wants to submit the following certificates using send_certificate rpc command:

  1. Valid Cert A with quality N with some fee > 0 Wallet will fund certificate inputs and changes for the Cert A, and will append the change output to the Wallet balances.
  2. Valid Cert B with quality < N with some fee > 0 Wallet will fund certificate inputs with the change of Cert A. In this case Cert B with lower quality depends from the Cert A with higher quality, which is invalid from the consensus perspective. Cert B is rejected.

The case is quite extreme and I don't expect real users to get on it, but for the Sidechain tests it's common. We need to make wallet coins fund rules fully compatible with the sidechain consensus rules.

File with longs on MC node: cert_dep_case.txt

i-Alex avatar Mar 05 '21 10:03 i-Alex