Transaction

4765d9e1b7fd40ccaa5cccd00f05a3b3f0c2984cb6d70c6ef7e4d3045eaaefce
Timestamp (utc)
2024-03-27 23:37:26
Fee Paid
0.00000049 BSV
(
0.00673545 BSV
-
0.00673496 BSV
)
Fee Rate
10 sat/KB
Version
1
Confirmations
100,035
Size Stats
4,896 B

2 Outputs

Total Output:
0.00673496 BSV
  • j"1LAnZuoQdcKCkpDBKQMCgziGMoPC4VQUckM$<div class="post">Building r127 here, we see some missing casts, apparently:<br/><br/><div class="codeheader">Code:</div><div class="code">rpc.cpp: In function ‘json_spirit::Value gethashespersec(const json_spirit::Array&amp;, bool)’:<br/>rpc.cpp:340: error: conversion from ‘int64’ to ‘json_spirit::Value’ is ambiguous<br/>json/json_spirit_value.h:283: note: candidates are: json_spirit::Value_impl&lt;Config&gt;::Value_impl(double) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:275: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(uint64_t) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:267: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(int64_t) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:259: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(int) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:251: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(bool) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:219: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(typename Config::String_type::const_pointer) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>rpc.cpp:341: error: conversion from ‘int64’ to ‘json_spirit::Value’ is ambiguous<br/>json/json_spirit_value.h:283: note: candidates are: json_spirit::Value_impl&lt;Config&gt;::Value_impl(double) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:275: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(uint64_t) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:267: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(int64_t) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:259: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(int) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:251: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(bool) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;]<br/>json/json_spirit_value.h:219: note: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json_spirit::Value_impl&lt;Config&gt;::Value_impl(typename Config::String_type::const_pointer) [with Config = json_spirit::Config_vector&lt;std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;] &lt;near match&gt;<br/><br/></div><br/><br/><br/>The following patch seems to solve the problem:<br/><div class="codeheader">Code:</div><div class="code">--- a/rpc.cpp<br/>+++ b/rpc.cpp<br/>@@ -337,8 +337,8 @@ Value gethashespersec(const Array&amp; params, bool fHelp)<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Returns a recent hashes per second performance measurement while g<br/>&nbsp;<br/>&nbsp; &nbsp; &nbsp;if (GetTimeMillis() - nHPSTimerStart &gt; 8000)<br/>-&nbsp; &nbsp; &nbsp; &nbsp; return (int64)0;<br/>-&nbsp; &nbsp; return (int64)dHashesPerSec;<br/>+&nbsp; &nbsp; &nbsp; &nbsp; return (int64_t)0;<br/>+&nbsp; &nbsp; return (int64_t)dHashesPerSec;<br/>&nbsp;}<br/>&nbsp;<br/></div></div> text/html
    https://whatsonchain.com/tx/4765d9e1b7fd40ccaa5cccd00f05a3b3f0c2984cb6d70c6ef7e4d3045eaaefce