Browse Source

Fix

pull/4/head
jl777 6 years ago
parent
commit
a8c3557589
  1. 9
      src/cc/oracles.cpp
  2. 2
      src/wallet/rpcwallet.cpp

9
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

2
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 )

Loading…
Cancel
Save