Post
Topic
Board Announcements (Altcoins)
Re: [BBR] Boolberry: Privacy and Security - Guaranteed[Bittrex/Poloniex]GPU Released
by
clintar
on 29/12/2014, 22:04:16 UTC
We need your help in testing of the new version.
...

Here's the git diff of what I had to change to get it to compile in my Linux distro.

Code:
diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h
index 27bed21..466dca2 100644
--- a/src/crypto/crypto.h
+++ b/src/crypto/crypto.h
@@ -26,11 +26,11 @@ namespace crypto {
 
 #pragma pack(push, 1)
   POD_CLASS ec_point {
-    char data[32];
+    protected: char data[32];
   };
 
   POD_CLASS ec_scalar {
-    char data[32];
+    protected: char data[32];
   };
 
   POD_CLASS public_key: ec_point {
diff --git a/src/crypto/mnemonic-encoding.cpp b/src/crypto/mnemonic-encoding.cpp
index 3a283ad..5781deb 100644
--- a/src/crypto/mnemonic-encoding.cpp
+++ b/src/crypto/mnemonic-encoding.cpp
@@ -3275,7 +3275,8 @@ namespace crypto
                {
                        int n = NUMWORDS;
                        vector tokens;
-                       boost::split(tokens, boost::trim_copy(text),
+                       string cptext = boost::trim_copy(text);
+                       boost::split(tokens, cptext,
                                boost::is_any_of(" "));
                        if(tokens.size() % 3 != 0)
                                throw runtime_error("Invalid word count in mnemonic text");

It didn't like accessing crypto.data because it was private. I set it to be declared as protected, but I don't know if that's the right thing to do. I was just trying to get it to compile. Then it was just that I needed to do the trim_copy in a temp variable instead of sending to the split function.