BlockPo / BlockPo-to-Tradelayer

Incubation Repo for the TradeLayer protocol, 0.2.0
http://www.tradelayer.org
Other
8 stars 8 forks source link

Change tl_createrawtx_reference params #304

Closed patrickdugan closed 4 years ago

patrickdugan commented 4 years ago

In addition to the txstring and the reference address to be painted, add a 3rd optional parameter t the createrawtx_reference RPC where a 0 or null value defaults to the dust threshold (the current behavior) and a value greater than the dust value is used as the purchase proceeds to be sent to the reference tx.

We need to have this in order to write an alt. buildRaw function that then summarily uses this RPC to add another input and make everything sum out: https://bitcoincore.org/en/doc/0.16.0/rpc/rawtransactions/fundrawtransaction/

santos177 commented 4 years ago

I was checking the tl_createrawtx_reference, and i saw the feature you are asking : https://github.com/BlockPo/BlockPo-to-Tradelayer/blob/development/src/tradelayer/rpcrawtx.cpp#L208. Did you test the rpc using 3 arguments ?