Error in MultiChain version 19, createrawtransaction with permissions

+1 vote

ultichain-cli chain2 createrawtransaction '[{"txid":"...","vout":0}]' '{"...":{"permissions":{"type":"send,receive,connect","startblock":0,"endblock":4294967295}}}'
{"method":"createrawtransaction","params":[[{"txid":"...","vout":0}],{"...":{"permissions":{"type":"send,receive,connect","startblock":0,"endblock":4294967295}}}],"id":1,"chain_name":"chain2"}

error code: -8
error message:
Negative value for permissions startblock

asked Apr 5, 2016 by alex

2 Answers

0 votes

This is probably a bug where the endblock value is being read as signed from the JSON-RPC request, rather than unsigned. We'll check into it for the next alpha.

For now the workaround is either to use a small maximum block number (up to 2000000000 should hopefully work) or even simpler, just omit the startblock and endblock parameters, since the defaults are the values you provided.

answered Apr 5, 2016 by MultiChain
0 votes
FYI this should be fixed in alpha 20, just released.
answered May 3, 2016 by MultiChain
...