1
0
Fork 0
forked from lthn/blockchain

daemon RPC documentation added

This commit is contained in:
sowle 2024-04-21 04:41:43 +02:00
parent 2e2d3c26b4
commit 9f8ce4cc09
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
4 changed files with 467 additions and 326 deletions

View file

@ -1,4 +1,4 @@
// Copyright (c) 2014-2023 Zano Project
// Copyright (c) 2014-2024 Zano Project
// Copyright (c) 2014-2018 The Louisdor Project
// Copyright (c) 2012-2013 The Cryptonote developers
// Copyright (c) 2012-2013 The Boolberry developers
@ -167,9 +167,9 @@ namespace currency
uint64_t no;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(proposal_id)
KV_SERIALIZE(yes)
KV_SERIALIZE(no)
KV_SERIALIZE(proposal_id) DOC_DSCR("ID of the proposal.") DOC_EXMP("ZAP999") DOC_END
KV_SERIALIZE(yes) DOC_DSCR("Nubmer of positve votes.") DOC_EXMP(42) DOC_END
KV_SERIALIZE(no) DOC_DSCR("Number of negative votes.") DOC_EXMP(37) DOC_END
END_KV_SERIALIZE_MAP()
};
@ -179,8 +179,8 @@ namespace currency
std::list<vote_on_proposal> votes;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(total_pos_blocks)
KV_SERIALIZE(votes)
KV_SERIALIZE(total_pos_blocks) DOC_DSCR("Number of blocks in a given range.") DOC_EXMP(87482) DOC_END
KV_SERIALIZE(votes) DOC_DSCR("Result of votes in a given range.") DOC_END
END_KV_SERIALIZE_MAP()
};

View file

@ -2814,6 +2814,7 @@ namespace currency
return CURRENT_TRANSACTION_VERSION;
}
//---------------------------------------------------------------
// TODO @#@# this function is obsolete and needs to be re-written
uint64_t get_reward_from_miner_tx(const transaction& tx)
{
uint64_t income = 0;

File diff suppressed because it is too large Load diff

View file

@ -23,7 +23,7 @@ using namespace currency;
#define TMP_LOG_RESTORE
#endif
void exception_handler(){}
static void exception_handler(){}
//==============================================================================================================================
// helper routine: creates multisig-spending tx using a wallet and keys of other ms-participants, then sends it to the core proxy