Hello beautiful devs
I’m currently working on implementing FIRO inside miningcore (a very popular stratum mining pool).
I basically almost finished but i’m facing a little glitch in the matrix on the FIRO testnet.
If you look carefully at the following getblocktemplate, you will notice that there is a masternode payee which requires more amount than the coinbasevalue
{“result”:{“capabilities”:[“proposal”],“version”:536875008,“rules”:,“vbavailable”:{},“vbrequired”:0,“previousblockhash”:“02cb0e09136dba393205cc170733cfa59a8e1776730fb9c65ef80a85d23d0d6a”,“transactions”:[{“data”:“03000600000000000000fd490101002f9e01000100010ccf6465936ecad4465aa7712baf4945eb02551485f1637b40cda1258564a953320000000000000032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000”,“txid”:“7fa9288c0da3b729a37e957c644ca3f8c7854070948554b56e41844ad5e1f3a0”,“hash”:“7fa9288c0da3b729a37e957c644ca3f8c7854070948554b56e41844ad5e1f3a0”,“depends”:,“fee”:0,“sigops”:0,“weight”:1368},{“data”:“03000600000000000000fda30101002f9e01000100038d3539ea9ed470f28e6e288759f223898e110deeb3184175e6200ed775506017fd90010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd900100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000”,“txid”:“e4eab31f3b1e0a86eb04925207eec9ca7b3b1e9bebf8acb6819edbc6c159c2c8”,“hash”:“e4eab31f3b1e0a86eb04925207eec9ca7b3b1e9bebf8acb6819edbc6c159c2c8”,“depends”:,“fee”:0,“sigops”:0,“weight”:1728}],“coinbaseaux”:{“flags”:“”},“coinbasevalue”:156250000,“longpollid”:“02cb0e09136dba393205cc170733cfa59a8e1776730fb9c65ef80a85d23d0d6a36”,“target”:“00ffff0000000000000000000000000000000000000000000000000000000000”,“mintime”:1686426044,“mutable”:[“time”,“transactions”,“prevblock”],“noncerange”:“00000000ffffffff”,“sigoplimit”:400000,“sizelimit”:2000000,“weightlimit”:2000000,“curtime”:1686446207,“bits”:“2000ffff”,“height”:106031,“znode”:[{“payee”:“TQpFR757b8o2r1AV4f7BCvUvejm1zFFrUX”,“script”:“76a914a2d828a0bca59007f8149a6af26e811bfc1b804b88ac”,“amount”:250000000},{“payee”:“TXAyRafTL2SUp4L6wY6bn6rAq8XR4Q5V1f”,“script”:“76a914e8944ca0633c694ef8249088594c386af232f77c88ac”,“amount”:62500000}],“znode_payments_started”:true,“znode_payments_enforced”:true,“coinbase_payload”:“02002f9e010069f53c24faeeffc307c8f451dbf4540926a4730a65aa6889d72f57ae28f9a3de2f94b1eca820a8e1e67439e7479e2845e43e0f1003f2f0374d467dd7b9fb0d18”,“pprpcheader”:“4a5750164d5e42fc7969cf31f1ceec87e455f8068957924531b1dbf78324feec”,“pprpcepoch”:81},“error”:null,“id”:0}
So every time, i try to submit block, the daemon answers rightfully: bad-txns-vout-negative
[2023-06-11 01:28:30.0887] [I] [firo1] Submitting block 106031 [1644b7b6b33540a0a1e193a33f916cc64f5ae1b10b51da2e167b0cbac2514ff1]
[2023-06-11 01:28:30.0917] [W] [firo1] Block 106031 submission failed with: bad-txns-vout-negative
It would be quite helpful if that little issue could be fixed, i would love to complete all my testing