This commit is contained in:
jl777
2018-09-03 03:23:52 -11:00
parent 760ff4b87d
commit a8c3557589
2 changed files with 10 additions and 1 deletions

View File

@@ -42,6 +42,15 @@
2) pay provider for N oracle data points -> lock funds for oracle provider
3) publish oracle data point -> publish data and collect payment
The format string is a set of chars with the following meaning:
's' -> <256 char string
'S' -> <65536 char string
'c' -> 1 byte signed little endian number, 'C' unsigned
't' -> 2 byte signed little endian number, 'T' unsigned
'i' -> 4 byte signed little endian number, 'I' unsigned
'l' -> 8 byte signed little endian number, 'L' unsigned
uppercase is unsigned, lowercase is a signed number
create:
vins.*: normal inputs
vout.0: txfee tag to oracle normal address

View File

@@ -5425,7 +5425,7 @@ UniValue oraclessubscribe(const UniValue& params, bool fHelp)
UniValue oraclessamples(const UniValue& params, bool fHelp)
{
UniValue result(UniValue::VOBJ); uint256 txid; int32_t num; std::string hex;
UniValue result(UniValue::VOBJ); uint256 txid,batontxid; int32_t num; std::string hex;
if ( fHelp || params.size() != 3 )
throw runtime_error("oraclessamples oracletxid batonutxo num\n");
if ( ensure_CCrequirements() < 0 )