mirror of
https://github.com/monero-project/monero.git
synced 2025-08-15 23:30:25 -04:00
Merge pull request #6810
19b2283
New add_aux_pow RPC to support merge mining (moneromooo-monero)
This commit is contained in:
commit
8d7c1135b8
14 changed files with 720 additions and 1 deletions
|
@ -133,6 +133,18 @@ int main(int argc, char* argv[])
|
|||
{
|
||||
std::cout << "Parsed block:" << std::endl;
|
||||
std::cout << cryptonote::obj_to_json_str(block) << std::endl;
|
||||
bool parsed = cryptonote::parse_tx_extra(block.miner_tx.extra, fields);
|
||||
if (!parsed)
|
||||
std::cout << "Failed to parse tx_extra" << std::endl;
|
||||
|
||||
if (!fields.empty())
|
||||
{
|
||||
print_extra_fields(fields);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "No fields were found in tx_extra" << std::endl;
|
||||
}
|
||||
}
|
||||
else if (cryptonote::parse_and_validate_tx_from_blob(blob, tx) || cryptonote::parse_and_validate_tx_base_from_blob(blob, tx))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue