jratcliff63367 / blockchain21 Goto Github PK
View Code? Open in Web Editor NEWA very simple bitcoin blockchain parser
A very simple bitcoin blockchain parser
System platform: Ubuntu 16.04.1, 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
First, had to edit Makefile to include -std=gnu++11
That fixed some complaints, but not all.
g++ *.cpp -std=gnu++11 -o blockchain21.out
FileInterface.cpp:431:2: error: ‘MemoryMap’ does not name a type
MemoryMap *mMemoryMap;
^
FileInterface.cpp: In constructor ‘_FILE_INTERFACE::_FILE_INTERFACE(const char*, const char*, void*, uint64_t, bool)’:
FileInterface.cpp:91:3: error: ‘mMemoryMap’ was not declared in this scope
mMemoryMap = nullptr;
^
FileInterface.cpp:94:48: error: ‘createMemoryMap’ was not declared in this scope
mMemoryMap = createMemoryMap(fname, 0, false);
^
FileInterface.cpp:111:36: error: ‘_stricmp’ was not declared in this scope
if ( spec && _stricmp(spec,"wmem") == 0 )
^
FileInterface.cpp: In destructor ‘_FILE_INTERFACE::~_FILE_INTERFACE()’:
FileInterface.cpp:147:7: error: ‘mMemoryMap’ was not declared in this scope
if (mMemoryMap)
^
FileInterface.cpp: In member function ‘bool _FILE_INTERFACE::usesMemoryMappedFile() const’:
FileInterface.cpp:167:10: error: ‘mMemoryMap’ was not declared in this scope
return mMemoryMap ? true : false;
^
FileInterface.cpp: In member function ‘uint64_t _FILE_INTERFACE::seek(uint64_t, int)’:
FileInterface.cpp:314:33: error: ‘_fseeki64’ was not declared in this scope
ret = _fseeki64(mFph,loc,mode);
^
FileInterface.cpp: In member function ‘uint64_t _FILE_INTERFACE::tell()’:
FileInterface.cpp:343:24: error: ‘_ftelli64’ was not declared in this scope
ret = _ftelli64(mFph);
^
FileInterface.cpp: In function ‘uint64_t fi_fprintf(FILE_INTERFACE*, const char*, ...)’:
FileInterface.cpp:499:47: error: ‘_vsnprintf’ was not declared in this scope
_vsnprintf(buffer,2047, fmt, (char *)(&fmt+1));
^
PublicKeyDatabase.cpp: In member function ‘time_t PUBLIC_KEY_DATABASE::PublicKeyDatabaseImpl::getMonthDayYear(uint32_t, uint32_t, uint32_t)’:
PublicKeyDatabase.cpp:1907:29: error: ‘_mkgmtime’ was not declared in this scope
return _mkgmtime(timeinfo);
^
main.cpp: In function ‘int main(int, const char**)’:
main.cpp:165:17: error: ‘kbhit’ was not declared in this scope
if (kbhit())
^
main.cpp:167:22: error: ‘getch’ was not declared in this scope
int c = getch();
^
Makefile:2: recipe for target 'blockchain21.out' failed
make: *** [blockchain21.out] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.