Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 1,047 Lines • ▼ Show 20 Lines | return RPCHelpMan{ | ||||
result.pushKV("previousblockhash", pblock->hashPrevBlock.GetHex()); | result.pushKV("previousblockhash", pblock->hashPrevBlock.GetHex()); | ||||
result.pushKV("transactions", transactions); | result.pushKV("transactions", transactions); | ||||
result.pushKV("coinbaseaux", aux); | result.pushKV("coinbaseaux", aux); | ||||
result.pushKV("coinbasetxn", coinbasetxn); | result.pushKV("coinbasetxn", coinbasetxn); | ||||
result.pushKV("coinbasevalue", int64_t(coinbasevalue / SATOSHI)); | result.pushKV("coinbasevalue", int64_t(coinbasevalue / SATOSHI)); | ||||
result.pushKV("longpollid", | result.pushKV("longpollid", | ||||
active_chain.Tip()->GetBlockHash().GetHex() + | active_chain.Tip()->GetBlockHash().GetHex() + | ||||
ToString(nTransactionsUpdatedLast)); | ToString(nTransactionsUpdatedLast)); | ||||
// TODO target needs to adjust based on penalty | |||||
result.pushKV("target", hashTarget.GetHex()); | result.pushKV("target", hashTarget.GetHex()); | ||||
result.pushKV("mintime", | result.pushKV("mintime", | ||||
int64_t(pindexPrev->GetMedianTimePast()) + 1); | int64_t(pindexPrev->GetMedianTimePast()) + 1); | ||||
result.pushKV("mutable", aMutable); | result.pushKV("mutable", aMutable); | ||||
result.pushKV("noncerange", "00000000ffffffff"); | result.pushKV("noncerange", "00000000ffffffff"); | ||||
result.pushKV("sigoplimit", | result.pushKV("sigoplimit", | ||||
GetMaxBlockSigChecksCount(DEFAULT_MAX_BLOCK_SIZE)); | GetMaxBlockSigChecksCount(DEFAULT_MAX_BLOCK_SIZE)); | ||||
result.pushKV("sizelimit", DEFAULT_MAX_BLOCK_SIZE); | result.pushKV("sizelimit", DEFAULT_MAX_BLOCK_SIZE); | ||||
▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines |