diff --git a/src/cc/oracles.cpp b/src/cc/oracles.cpp index fbb60a04e..db76eece2 100644 --- a/src/cc/oracles.cpp +++ b/src/cc/oracles.cpp @@ -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 diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 4e0986502..c4defc18c 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -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 )