/
WEBSITEinBLOCKCHAIN.doc
74 lines (41 loc) · 1.97 KB
/
WEBSITEinBLOCKCHAIN.doc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# ImageCoin
# Website stored in blockchain
License
-------
ImageCoin Core is released under the terms of the MIT license. See [COPYING](COPYING) for more
information or see http://opensource.org/licenses/MIT.
Building process
-----------------
ImageCoin can store your website in blockchain and protect it from hackers
Development tips and tricks
---------------------------
**payload for img**
Save your HTML pages as transaction.
File
* `T2dnUwACAAAAAAAAAAAfm5nB6slBlZ3Fch..`
**compiling for debugging**
After run ImageCoind in your server.
Get your Files with OP_Return
* https://github.com/mceme/php-OP_RETURN
Example :
* https://github.com/mceme/php-OP_RETURN/blob/master/example/start.html
Run configure with the --enable-debug option, then make. Or run configure with
CXXFLAGS="-g -ggdb -O0" or whatever debug flags you need.
**debug.log**
If the code is behaving strangely, take a look in the debug.log file in the data directory;
error and debugging message are written there.
The -debug=... command-line option controls debugging; running with just -debug will turn
on all categories (and give you a very large debug.log file).
The Qt code routes qDebug() output to debug.log under category "qt": run with -debug=qt
to see it.
**testnet and regtest modes**
Run with the -testnet option to run with "play ImageCoin" on the test network, if you
are testing multi-machine code that needs to operate across the internet.
If you are testing something that can run on one machine, run with the -regtest option.
In regression test mode blocks can be created on-demand; see qa/rpc-tests/ for tests
that run in -regtest mode.
**DEBUG_LOCKORDER**
ImageCoinCore is a multithreaded application, and deadlocks or other multithreading bugs
can be very difficult to track down. Compiling with -DDEBUG_LOCKORDER (configure
CXXFLAGS="-DDEBUG_LOCKORDER -g") inserts run-time checks to keep track of what locks
are held, and adds warning to the debug.log file if inconsistencies are detected.