Transaction

6330edcfc2ee9dbd6b7eec6a5d1df52abfd585a83e5b493510d0c2a3674742a7
2024-04-02 18:43:21
0.00000017 BSV
(
0.01114991 BSV
-
0.01114974 BSV
)
10.46 sat/KB
1
69,413
1,624 B

2 Outputs

Total Output:
0.01114974 BSV
  • j"1LAnZuoQdcKCkpDBKQMCgziGMoPC4VQUckM[<div class="post"><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=461.msg5738#msg5738">Quote from: lachesis on July 25, 2010, 07:52:35 PM</a></div><div class="quote">I found what appears to be a bug: with a long enough username and password combination, the base64 encoder in bitcoind ... inserts a newline every 64 characters</div><br/>Great catch! &nbsp;Simpler fix is to specify the BIO_FLAGS_BASE64_NO_NL in the rpc.cpp/EncodeBase64 function:<br/><div class="codeheader">Code:</div><div class="code">diff --git a/rpc.cpp b/rpc.cpp<br/>index 72bdc50..703b757 100644<br/>--- a/rpc.cpp<br/>+++ b/rpc.cpp<br/>@@ -765,13 +765,14 @@ string EncodeBase64(string s)<br/>&nbsp;&nbsp; &nbsp; BUF_MEM *bptr;<br/>&nbsp;<br/>&nbsp;&nbsp; &nbsp; b64 = BIO_new(BIO_f_base64());<br/>+ &nbsp; &nbsp;BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);<br/>&nbsp;&nbsp; &nbsp; bmem = BIO_new(BIO_s_mem());<br/>&nbsp;&nbsp; &nbsp; b64 = BIO_push(b64, bmem);<br/>&nbsp;&nbsp; &nbsp; BIO_write(b64, s.c_str(), s.size());<br/>&nbsp;&nbsp; &nbsp; BIO_flush(b64);<br/>&nbsp;&nbsp; &nbsp; BIO_get_mem_ptr(b64, &amp;bptr);<br/>&nbsp;<br/>- &nbsp; &nbsp;string result(bptr-&gt;data, bptr-&gt;length-1);<br/>+ &nbsp; &nbsp;string result(bptr-&gt;data, bptr-&gt;length);<br/>&nbsp;&nbsp; &nbsp; BIO_free_all(b64);<br/>&nbsp;<br/>&nbsp;&nbsp; &nbsp; return result;<br/></div></div> text/html
    https://whatsonchain.com/tx/6330edcfc2ee9dbd6b7eec6a5d1df52abfd585a83e5b493510d0c2a3674742a7