diff --git a/mine b/mine index 951c6af..d82e658 100755 Binary files a/mine and b/mine differ diff --git a/mine.cpp b/mine.cpp index 3e84d89..ec8d890 100644 --- a/mine.cpp +++ b/mine.cpp @@ -6,8 +6,6 @@ #include #include -#define VERSION_MOD 4294967296 - using json = nlohmann::json; struct Output { @@ -76,31 +74,57 @@ std::string big_to_little(std::string s, int len) { return little; } +int compact_exp(int n) { + int exp=1; + while (true) { + n=n/256; + if (n==0) { + break; + } + else { + exp++; + } + } + return exp; +} + std::string serialise(Txn t) { std::string serialised; //version - int version = t.version%(VERSION_MOD); std::stringstream ss; - ss<