https://github.com/novacoin-project/novacoin/commit/bd8587a314520dcb3c84e0065e1fe073ee2723bf
В обновленной функции на вход принимается объект JSON, в котором есть обязательные и необязательные поля. При этом обязательный параметр только один - ID транзакции, остальные можно опустить. Параметр номера выхода заменен на vout - массив номеров выходов, потраченные выходы отфильтровываются автоматически. Назначение остальных параметров не менялось.
Примеры:
scaninput '{"txid":"95d640426fe66de866a8cf2d0601d2c8cf3ec598109b4d4ffa7fd03dad6d35ce","vout":[8], "difficulty": 0.001}'
14:23:39
[
{
"nout" : 8,
"hash" : "00001987d16734f644d3b0a4c8f8f17b4a429b2b3a766861f8ebb854a67df833",
"time" : "2015-10-12 03:51:32 UTC"
},
{
"nout" : 8,
"hash" : "00001c124db0c88b8b304d947166128901ce74745b22e8bf0bce79fbf09de4b9",
"time" : "2015-10-17 19:04:06 UTC"
},
{
"nout" : 8,
"hash" : "0000042e750b8254e99802538e6b27cb8c7c74b66b9590ebab419e6031ac654d",
"time" : "2015-10-22 14:21:15 UTC"
},
{
"nout" : 8,
"hash" : "00000d81fc8981d3f7a3152e75af405c9b19aa12e5550e43fb228fd5fc5f532d",
"time" : "2015-10-24 00:31:27 UTC"
},
{
"nout" : 8,
"hash" : "000015f30d9092afa7fc31c6ba24b2cd0099d9f0565c2f221d3dae278c0f8e0a",
"time" : "2015-10-24 13:59:40 UTC"
},
{
"nout" : 8,
"hash" : "00001e565f8f977a3475cf60381263c93d03bb8bf71bb897cfbee39902cf4291",
"time" : "2015-11-03 07:05:14 UTC"
},
{
"nout" : 8,
"hash" : "0000086a0422a1944c1f2f60263192fb36a1dea4883e43d43076c91a58a38f88",
"time" : "2015-11-03 14:38:09 UTC"
},
{
"nout" : 8,
"hash" : "00000cc83d48d802f9bd2272265b9136063d2d773d00e5cb52d0f2c7e10fd0f1",
"time" : "2015-11-07 10:05:54 UTC"
},
{
"nout" : 8,
"hash" : "00000cc2aef9e4fa2b158034f7165d5b700672253ac4f036ef2b4acdb485d20c",
"time" : "2015-11-13 04:16:33 UTC"
},
{
"nout" : 8,
"hash" : "0000100d753ec08d95e8e0c654dbaeaaa7ddd068b50be9b5458ce77c64b78e86",
"time" : "2015-11-17 04:05:56 UTC"
},
{
"nout" : 8,
"hash" : "000011ab922ed569d2afa1b0051d1b2db52e19ed15143fbbc5c410ab00823459",
"time" : "2015-11-24 06:57:28 UTC"
},
{
"nout" : 8,
"hash" : "00001731843da9a8b8491dc4adb9b1f2c4392a64d1d0896cf92c84fb283eb3b4",
"time" : "2015-12-03 18:06:29 UTC"
},
{
"nout" : 8,
"hash" : "000014c67045aeb55d3d958e310b2f9c127852b4304e093b52f11c9012fa6e26",
"time" : "2015-12-04 15:23:03 UTC"
},
{
"nout" : 8,
"hash" : "000011d92d263bc3a47026c0107b9311fef0e82302be5e108bfcf15168b37407",
"time" : "2015-12-08 00:02:05 UTC"
},
{
"nout" : 8,
"hash" : "0000196e06da5b72b0dea5e7d594095483b30211300047c57d52500537e77437",
"time" : "2015-12-18 10:02:24 UTC"
},
{
"nout" : 8,
"hash" : "000005a650b6f33707163a35d0d3c37134a0abde2860f80df4d72f8a7ebc433f",
"time" : "2015-12-20 18:48:37 UTC"
},
{
"nout" : 8,
"hash" : "00000feb99d9b72c993a67dfde3dfbc6de3caed03ff14fe607a265c7302ffa7e",
"time" : "2015-12-30 10:43:23 UTC"
}
]
14:14:26
scaninput '{"txid":"95d640426fe66de866a8cf2d0601d2c8cf3ec598109b4d4ffa7fd03dad6d35ce","difficulty":0.02, "days":10}'
14:14:28
[
{
"nout" : 13,
"hash" : "000002952d334f08aadb71ee2aaec62519c8c945935455100170922e8ccc50af",
"time" : "2015-10-13 07:32:01 UTC"
},
{
"nout" : 18,
"hash" : "00000203d308cf2c55178da7896ef1d54e2da060ca38c3a3e0713dbe98e22aee",
"time" : "2015-10-13 15:20:42 UTC"
},
{
"nout" : 19,
"hash" : "000003b33772ad9a4fb409bf745a4d3f09cbe9c76db22100729f97747961618c",
"time" : "2015-10-12 19:19:03 UTC"
},
{
"nout" : 19,
"hash" : "000005eac183c2e01e2ed160cde7abca0f8db613cf95cf2a111faf3fd777345a",
"time" : "2015-10-13 11:56:44 UTC"
},
{
"nout" : 24,
"hash" : "00000a56a911d54c67bb2292dc14b761fc73303a358e44e767efec6912187d45",
"time" : "2015-10-06 16:14:28 UTC"
},
{
"nout" : 24,
"hash" : "000006f0522f35fb3a8f4fe239f5f0c3734fa282ec6f78e9122ec3155304da2f",
"time" : "2015-10-09 09:58:42 UTC"
},
{
"nout" : 24,
"hash" : "000010d2b8279c902d9327c20a820dda846a31cdba2995b3c0221e5b84e3cddb",
"time" : "2015-10-11 16:37:34 UTC"
},
{
"nout" : 26,
"hash" : "00000e2a9ee6cb5e7cc1e3a273c3542b637a0bd7a17fea568a5cbd64626e4c54",
"time" : "2015-10-14 00:46:10 UTC"
}
]
14:14:33
scaninput '{"txid":"95d640426fe66de866a8cf2d0601d2c8cf3ec598109b4d4ffa7fd03dad6d35ce","difficulty":0.03, "days":10}'
14:14:34
[
{
"nout" : 18,
"hash" : "00000203d308cf2c55178da7896ef1d54e2da060ca38c3a3e0713dbe98e22aee",
"time" : "2015-10-13 15:20:42 UTC"
},
{
"nout" : 19,
"hash" : "000003b33772ad9a4fb409bf745a4d3f09cbe9c76db22100729f97747961618c",
"time" : "2015-10-12 19:19:03 UTC"
},
{
"nout" : 24,
"hash" : "00000a56a911d54c67bb2292dc14b761fc73303a358e44e767efec6912187d45",
"time" : "2015-10-06 16:14:28 UTC"
},
{
"nout" : 24,
"hash" : "000006f0522f35fb3a8f4fe239f5f0c3734fa282ec6f78e9122ec3155304da2f",
"time" : "2015-10-09 09:58:42 UTC"
},
{
"nout" : 26,
"hash" : "00000e2a9ee6cb5e7cc1e3a273c3542b637a0bd7a17fea568a5cbd64626e4c54",
"time" : "2015-10-14 00:46:10 UTC"
}
]
14:14:38
scaninput '{"txid":"95d640426fe66de866a8cf2d0601d2c8cf3ec598109b4d4ffa7fd03dad6d35ce","difficulty":0.04, "days":10}'
14:14:40
[
{
"nout" : 18,
"hash" : "00000203d308cf2c55178da7896ef1d54e2da060ca38c3a3e0713dbe98e22aee",
"time" : "2015-10-13 15:20:42 UTC"
},
{
"nout" : 19,
"hash" : "000003b33772ad9a4fb409bf745a4d3f09cbe9c76db22100729f97747961618c",
"time" : "2015-10-12 19:19:03 UTC"
},
{
"nout" : 24,
"hash" : "000006f0522f35fb3a8f4fe239f5f0c3734fa282ec6f78e9122ec3155304da2f",
"time" : "2015-10-09 09:58:42 UTC"
}
]
14:14:55
scaninput '{"txid":"95d640426fe66de866a8cf2d0601d2c8cf3ec598109b4d4ffa7fd03dad6d35ce","difficulty":0.05, "days":10}'
14:14:56
[
{
"nout" : 18,
"hash" : "00000203d308cf2c55178da7896ef1d54e2da060ca38c3a3e0713dbe98e22aee",
"time" : "2015-10-13 15:20:42 UTC"
},
{
"nout" : 24,
"hash" : "000006f0522f35fb3a8f4fe239f5f0c3734fa282ec6f78e9122ec3155304da2f",
"time" : "2015-10-09 09:58:42 UTC"
}
]
Войдет в дальнейшие сборки. В текущих сборках этого пока нет, только в репозитории.