mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
data prefix added to key images and outputs checkers
This commit is contained in:
parent
86e90a4ed7
commit
5d4c660525
3 changed files with 11 additions and 0 deletions
|
@ -2334,6 +2334,10 @@ public:
|
||||||
|
|
||||||
const size_t magiclen = strlen(KEY_IMAGE_EXPORT_FILE_MAGIC);
|
const size_t magiclen = strlen(KEY_IMAGE_EXPORT_FILE_MAGIC);
|
||||||
|
|
||||||
|
string data_prefix = xmreg::make_printable(decoded_raw_data.substr(0, magiclen));
|
||||||
|
|
||||||
|
context["data_prefix"] = data_prefix;
|
||||||
|
|
||||||
if (!strncmp(decoded_raw_data.c_str(), KEY_IMAGE_EXPORT_FILE_MAGIC, magiclen) == 0)
|
if (!strncmp(decoded_raw_data.c_str(), KEY_IMAGE_EXPORT_FILE_MAGIC, magiclen) == 0)
|
||||||
{
|
{
|
||||||
string error_msg = fmt::format("This does not seem to be key image export data.");
|
string error_msg = fmt::format("This does not seem to be key image export data.");
|
||||||
|
@ -2689,6 +2693,10 @@ public:
|
||||||
|
|
||||||
const size_t magiclen = strlen(OUTPUT_EXPORT_FILE_MAGIC);
|
const size_t magiclen = strlen(OUTPUT_EXPORT_FILE_MAGIC);
|
||||||
|
|
||||||
|
string data_prefix = xmreg::make_printable(decoded_raw_data.substr(0, magiclen));
|
||||||
|
|
||||||
|
context["data_prefix"] = data_prefix;
|
||||||
|
|
||||||
if (!strncmp(decoded_raw_data.c_str(), OUTPUT_EXPORT_FILE_MAGIC, magiclen) == 0)
|
if (!strncmp(decoded_raw_data.c_str(), OUTPUT_EXPORT_FILE_MAGIC, magiclen) == 0)
|
||||||
{
|
{
|
||||||
string error_msg = fmt::format("This does not seem to be output keys export data.");
|
string error_msg = fmt::format("This does not seem to be output keys export data.");
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h3>Data file prefix: {{data_prefix}}</h3>
|
||||||
|
|
||||||
{{#has_error}}
|
{{#has_error}}
|
||||||
<h4 style="color:red">Attempt failed</h4>
|
<h4 style="color:red">Attempt failed</h4>
|
||||||
<h4>{{error_msg}}</h4>
|
<h4>{{error_msg}}</h4>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
<h4 style="font-size: 15px; margin: 0px">(no javascript - no cookies - no web analytics trackers - no images - open sourced)</h4>
|
<h4 style="font-size: 15px; margin: 0px">(no javascript - no cookies - no web analytics trackers - no images - open sourced)</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h3>Data file prefix: {{data_prefix}}</h3>
|
||||||
|
|
||||||
{{#has_error}}
|
{{#has_error}}
|
||||||
<h4 style="color:red">Attempt failed</h4>
|
<h4 style="color:red">Attempt failed</h4>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue