Added mintime and curtime to RPC getmemorypool
This commit is contained in:
parent
52a3d2635c
commit
ab84512258
1 changed files with 4 additions and 0 deletions
|
@ -1873,6 +1873,8 @@ Value getmemorypool(const Array& params, bool fHelp)
|
||||||
" \"coinbasevalue\" : maximum allowable input to coinbase transaction, including the generation award and transaction fees\n"
|
" \"coinbasevalue\" : maximum allowable input to coinbase transaction, including the generation award and transaction fees\n"
|
||||||
" \"coinbaseflags\" : data that should be included in coinbase so support for new features can be judged\n"
|
" \"coinbaseflags\" : data that should be included in coinbase so support for new features can be judged\n"
|
||||||
" \"time\" : timestamp appropriate for next block\n"
|
" \"time\" : timestamp appropriate for next block\n"
|
||||||
|
" \"mintime\" : minimum timestamp appropriate for next block\n"
|
||||||
|
" \"curtime\" : current timestamp\n"
|
||||||
" \"bits\" : compressed target of next block\n"
|
" \"bits\" : compressed target of next block\n"
|
||||||
"If [data] is specified, tries to solve the block and returns true if it was successful.");
|
"If [data] is specified, tries to solve the block and returns true if it was successful.");
|
||||||
|
|
||||||
|
@ -1928,6 +1930,8 @@ Value getmemorypool(const Array& params, bool fHelp)
|
||||||
result.push_back(Pair("coinbasevalue", (int64_t)pblock->vtx[0].vout[0].nValue));
|
result.push_back(Pair("coinbasevalue", (int64_t)pblock->vtx[0].vout[0].nValue));
|
||||||
result.push_back(Pair("coinbaseflags", HexStr(COINBASE_FLAGS.begin(), COINBASE_FLAGS.end())));
|
result.push_back(Pair("coinbaseflags", HexStr(COINBASE_FLAGS.begin(), COINBASE_FLAGS.end())));
|
||||||
result.push_back(Pair("time", (int64_t)pblock->nTime));
|
result.push_back(Pair("time", (int64_t)pblock->nTime));
|
||||||
|
result.push_back(Pair("mintime", (int64_t)pindexPrev->GetMedianTimePast()+1));
|
||||||
|
result.push_back(Pair("curtime", (int64_t)GetAdjustedTime()));
|
||||||
|
|
||||||
union {
|
union {
|
||||||
int32_t nBits;
|
int32_t nBits;
|
||||||
|
|
Loading…
Reference in a new issue