mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
fix: mixin of tx in mempool is correct now
This commit is contained in:
parent
a4c3def391
commit
7d27c26962
2 changed files with 17 additions and 1 deletions
|
@ -696,7 +696,7 @@ public:
|
|||
uint64_t mixin_no = 0;
|
||||
|
||||
if (!mixin_numbers.empty())
|
||||
mixin_numbers.at(0) - 1;
|
||||
mixin_no = mixin_numbers.at(0) - 1;
|
||||
|
||||
// set output page template map
|
||||
txs.push_back(mstch::map {
|
||||
|
|
|
@ -509,9 +509,25 @@ get_mixin_no(const string& json_str)
|
|||
{
|
||||
vector<uint64_t> mixin_no;
|
||||
|
||||
json j;
|
||||
|
||||
try
|
||||
{
|
||||
j = json::parse(json_str);
|
||||
|
||||
mixin_no.push_back(j["vin"].at(0)["key"]["key_offsets"].size());
|
||||
}
|
||||
catch (std::invalid_argument& e)
|
||||
{
|
||||
cerr << "get_mixin_no: " << e.what() << endl;
|
||||
return mixin_no;
|
||||
}
|
||||
|
||||
return mixin_no;
|
||||
}
|
||||
|
||||
|
||||
|
||||
vector<uint64_t>
|
||||
get_mixin_no_in_txs(const vector<transaction>& txs)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue