Comments (4)
@yerkobits can you close this issue already?
from prosusmoney.
Prosus-Money forked itself (2016) and the old blockchain was copied manually to the new folder. This was always a security system to prevent "network hijacking."
The experiment worked. It is time to integrate these blocks into the block generation algorithm of the new Prosus-Money.
from prosusmoney.
/src/Daemon/Daemon.cpp
//std::string config_folder = "blockchain";
#include <stdio.h> // fopen(), fwrite(), fclose()
//los siguientes archivos se obtuvieron ejecutando: xxd -i binario.dat cabecera.h
#include "genesisBlockindexes.h"
//extern const char blockindexes_dat[];
//extern const size_t blockindexes_dat_len;
#include "genesisBlocks.h"
//extern const char blocks_dat[];
//extern const size_t blocks_dat_len;
FILE *archivo1;
FILE *archivo2;
archivo1 = fopen( (config_folder+"/"+"blockindexes.dat").c_str(), "rb+");
archivo2 = fopen( (config_folder+"/"+"blocks.dat").c_str(), "rb+");
if ( (archivo1 == NULL) && (archivo2 == NULL) ) {
logger(INFO, BRIGHT_WHITE) << "blockchain-file not found, creating genesis data...";
}
if(archivo1 == NULL) { // si archivo no existe, es creado.
archivo1 = fopen( (config_folder+"/"+"blockindexes.dat").c_str(), "w");
fwrite(blockindexes_dat, 1, blockindexes_dat_len, archivo1);
fclose(archivo1);
}
if(archivo2 == NULL) {
archivo2 = fopen( (config_folder+"/"+"blocks.dat").c_str(), "w");
fwrite(blocks_dat, 1, blocks_dat_len, archivo2);
fclose(archivo2);
}
from prosusmoney.
from prosusmoney.
Related Issues (20)
- Installation issue on Ubuntu HOT 1
- CryptoNote compilation issues HOT 3
- CryptoNote compilation warning #2 - Upgrade from memcpy HOT 3
- Connection issue in 0.7.2? HOT 8
- cmake + Qt5Gui HOT 2
- libboost install HOT 6
- readme.md - Windows compile HOT 6
- Compiling on UBUNTU 20 with libboost 1.71.0 HOT 3
- Updating libqrencode to latest version HOT 6
- Compiled Linux Wallet needs a default node IP to connect to HOT 1
- Prosus Money 2021 HOT 5
- Can't compile on Ubuntu under Raspberry Pi arm64 architecture HOT 16
- Issues compiling on PopLinux HOT 1
- Command line wallet reports balances incorrectly HOT 1
- Setup Testnet HOT 8
- Assertion failed when doing a transfer in testnet HOT 3
- Error while mining on testnet HOT 1
- Found CRITICAL Vulnerability in your website !
- Is this project alive? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prosusmoney.