zend_oo
zend_oo copied to clipboard
send_certificate RPC command higher quality cert dependency
During the certificate submission window for given sidechain a user wants to submit the following certificates using send_certificate
rpc command:
- Valid Cert A with quality
N
with somefee > 0
Wallet will fund certificate inputs and changes for the Cert A, and will append the change output to the Wallet balances. - Valid Cert B with quality
< N
with somefee > 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