m0n0lithic

Cryptocurrencies on GNU/Linux

Mar 9th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.43 KB | None | 0 0
  1. ==================================================================================================================================
  2. ::Compilando NANO/raiblocks::
  3.  
  4. https://github.com/nanocurrency/raiblocks/wiki/Build-Instructions
  5. https://github.com/nanocurrency/raiblocks/wiki/Build-rai_node-samples
  6. https://github.com/nanocurrency/raiblocks/wiki/Guide:-Quickstart-to-running-a-node-(Ubuntu-16.04)
  7.  
  8. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ rsync -avP ../../git/raiblocks/ .
  9. :~/git.build/raiblocks$ git submodule update --init --recursive
  10. :~/git.build/raiblocks$ cmake -DBOOST_ROOT=/usr/local -DQt5_DIR=/usr/local/lib/cmake/Qt5 -DRAIBLOCKS_GUI=ON
  11. :~/git.build/raiblocks$ make rai_node
  12. :~/git.build/raiblocks$ make nano_wallet
  13. :~/git.build/raiblocks$ ldd nano_wallet
  14. linux-vdso.so.1 => (0x00007ffd88f7c000)
  15. libQt5Widgets.so.5 => /usr/local/lib/libQt5Widgets.so.5 (0x00007f0c0474c000)
  16. libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0c0452f000)
  17. libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0c0432b000)
  18. libQt5Gui.so.5 => /usr/local/lib/libQt5Gui.so.5 (0x00007f0c03d50000)
  19. libQt5Core.so.5 => /usr/local/lib/libQt5Core.so.5 (0x00007f0c037e7000)
  20. libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0c034de000)
  21. libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0c03114000)
  22. /lib64/ld-linux-x86-64.so.2 (0x00007f0c04db4000)
  23. libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f0c02d92000)
  24. libGL.so.1 => /opt/amdgpu/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f0c02b1f000)
  25. libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f0c028fa000)
  26. libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0c026e0000)
  27. libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0c024ca000)
  28. libicui18n.so.55 => /usr/lib/x86_64-linux-gnu/libicui18n.so.55 (0x00007f0c02068000)
  29. libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007f0c01cd4000)
  30. libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f0c01aab000)
  31. libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f0c018a8000)
  32. libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f0c016a5000)
  33. libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f0c0149e000)
  34. libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f0c0129b000)
  35. libglapi.so.0 => /opt/amdgpu/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f0c0106b000)
  36. libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f0c00e59000)
  37. libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f0c00c56000)
  38. libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f0c00a50000)
  39. libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f0c0084e000)
  40. libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f0c00514000)
  41. libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f0c002fb000)
  42. libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f0c000f6000)
  43. libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f0bffed4000)
  44. libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f0bffcce000)
  45. libdrm.so.2 => /opt/amdgpu/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f0bffaba000)
  46. libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007f0bfe003000)
  47. libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f0bfdde1000)
  48. libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f0bfdbdd000)
  49. libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f0bfd9d7000)
  50. libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f0bfd767000)
  51.  
  52. :~/bin$ ./rai_node --diagnostics
  53. Testing hash function
  54. Testing key derivation function
  55. Dumping OpenCL information
  56. OpenCL found 0 platforms and 0 devices
  57.  
  58. ~/bin$ ./rai_node --debug_block_count
  59. Block count: 1
  60.  
  61.  
  62. :~/bin$ cat ~/RaiBlocks/config.json
  63. {
  64. "version": "2",
  65. "rpc_enable": "false",
  66. "rpc": {
  67. "address": "::1",
  68. "port": "7076",
  69. "enable_control": "false",
  70. "frontier_request_limit": "16384",
  71. "chain_request_limit": "16384"
  72. },
  73. "node": {
  74. "version": "9",
  75. "peering_port": "7075",
  76. "bootstrap_fraction_numerator": "1",
  77. "receive_minimum": "1000000000000000000000000",
  78. "logging": {
  79. "version": "3",
  80. "ledger": "false",
  81. "ledger_duplicate": "false",
  82. "vote": "false",
  83. "network": "true",
  84. "network_message": "false",
  85. "network_publish": "false",
  86. "network_packet": "false",
  87. "network_keepalive": "false",
  88. "node_lifetime_tracing": "false",
  89. "insufficient_work": "true",
  90. "log_rpc": "true",
  91. "bulk_pull": "false",
  92. "work_generation_time": "true",
  93. "log_to_cerr": "false",
  94. "max_size": "16777216",
  95. "rotation_size": "4194304",
  96. "flush": "true"
  97. },
  98. "work_peers": "",
  99. "preconfigured_peers": [
  100. "rai.raiblocks.net"
  101. ],
  102. "preconfigured_representatives": [
  103. "xrb_3arg3asgtigae3xckabaaewkx3bzsh7nwz7jkmjos79ihyaxwphhm6qgjps4",
  104. "xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou",
  105. "xrb_1q3hqecaw15cjt7thbtxu3pbzr1eihtzzpzxguoc37bj1wc5ffoh7w74gi6p",
  106. "xrb_3dmtrrws3pocycmbqwawk6xs7446qxa36fcncush4s1pejk16ksbmakis78m",
  107. "xrb_3hd4ezdgsp15iemx7h81in7xz5tpxi43b6b41zn3qmwiuypankocw3awes5k",
  108. "xrb_1awsn43we17c1oshdru4azeqjz9wii41dy8npubm4rg11so7dx3jtqgoeahy",
  109. "xrb_1anrzcuwe64rwxzcco8dkhpyxpi8kd7zsjc1oeimpc3ppca4mrjtwnqposrs",
  110. "xrb_1hza3f7wiiqa7ig3jczyxj5yo86yegcmqk3criaz838j91sxcckpfhbhhra1"
  111. ],
  112. "inactive_supply": "0",
  113. "password_fanout": "1024",
  114. "io_threads": "4",
  115. "work_threads": "4",
  116. "enable_voting": "true",
  117. "bootstrap_connections": "4",
  118. "bootstrap_connections_max": "64",
  119. "callback_address": "",
  120. "callback_port": "0",
  121. "callback_target": "",
  122. "lmdb_max_dbs": "128"
  123. },
  124. "opencl_enable": "false",
  125. "opencl": {
  126. "platform": "0",
  127. "device": "0",
  128. "threads": "1048576"
  129. }
  130. }
  131.  
  132. To enable RPC for node edit config.json after first launch
  133. :~/bin$ sed -i 's/"rpc_enable": "false"/"rpc_enable": "true"/g' ~/RaiBlocks/config.json
  134. :~/bin$ sed -i 's/"enable_control": "false"/"enable_control": "true"/g' ~/RaiBlocks/config.json
  135.  
  136. ::Consultar el nodo con RPC::
  137. https://github.com/nanocurrency/raiblocks/wiki/RPC-protocol
  138.  
  139. wilderman@wilderman-Precision-T1650:~/bin$ unset http_proxy
  140. wilderman@wilderman-Precision-T1650:~/bin$ unset https_proxy
  141. wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "block_count" }' '[::1]:7076'
  142. {
  143. "count": "91",
  144. "unchecked": "1738121"
  145. }
  146.  
  147. $ curl -g -d '{ "action": "stop" }' '[::1]:7076'
  148. {
  149. "success": ""
  150. }
  151. $ curl -g -d '{ "action": "stop" }' '[::1]:7076'
  152. curl: (7) Failed to connect to ::1 port 7076: Connection refused
  153.  
  154. CLI::Importar wallet
  155. https://github.com/nanocurrency/raiblocks/wiki/Command-line-interface
  156. --wallet_import --file=<filepath> --wallet=<wallet> --password=<password>
  157.  
  158. $ ./rai_node --wallet_create
  159. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  160.  
  161. Importar wallet backup de casa:
  162. :~/bin$ ./rai_node --wallet_import --file=/home/wilderman/Dropbox/Documents/cryptoc/backup/9694A4XXXXXXXXXXXXXXXXXXXXXXXXXXXX.json --wallet=B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --password='xxxxxxxxxxxxxxxxxxxx'
  163.  
  164. Listar Wallet:
  165. $ ./rai_node --wallet_list
  166. Wallet ID: B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  167. xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid
  168.  
  169. PublicK/PrivK
  170. XRB/NANO Extraer Wallet Info {public/private}
  171. wilderman@m0n0lithic-desktop:~/bin/rai-9.0.0-Linux$ ./rai_wallet --wallet=9694A4B51AXXXXXXXXX --password='&U7xxxxxxxxxxxxxxxx' --wallet_decrypt_unsafe
  172. Seed: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  173. Pub: xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid Prv: ABXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  174.  
  175.  
  176. ::RPC::
  177. :~/bin$ curl -g -d '{ "action": "block_count" }' '[::1]:7076'
  178. {
  179. "count": "91",
  180. "unchecked": "1911316"
  181. }
  182.  
  183. $ curl -g -d '{ "action": "account_get", "key": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }' '[::1]:7076'
  184. {
  185. "account": "xrb_3f1cfh6wae1fgeqofkepyftdr9ph9rosidmcqeedwa4d56dks98bes846tya"
  186. }
  187.  
  188. $ curl -g -d '{ "action": "account_balance", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid" }' '[::1]:7076'
  189. {
  190. "balance": "0",
  191. "pending": "0"
  192. }
  193. $ curl -g -d '{ "action": "account_list", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }' '[::1]:7076'
  194. {
  195. "accounts": [
  196. "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"
  197. ]
  198. }
  199.  
  200. ::account info::
  201. $ curl -g -d '{ "action": "account_info", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid" }' '[::1]:7076'
  202. {
  203. "frontier": "212C0A69E4ADE2B3B4EC9A4A4C6263FB4272DDFC85BDA7A5971A82FFF568980C",
  204. "open_block": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C",
  205. "representative_block": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C",
  206. "balance": "7825348816000000000003000000000",
  207. "modified_timestamp": "1520978940",
  208. "block_count": "4"
  209. }
  210.  
  211.  
  212.  
  213. ::Wallet locked check::
  214. $ curl -g -d '{ "action": "wallet_locked", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }' '[::1]:7076'
  215. {
  216. "locked": "0"
  217. }
  218.  
  219. ::account key => public key::
  220. :~/bin$ curl -g -d '{ "action": "account_key", "account": "xrb_3f1cfh6wae1fgeqofkepyftdr9ph9rosidmcqeedwa4d56dks98bes846tya" }' '[::1]:7076'
  221. {
  222. "key": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  223. }
  224. $ curl -g -d '{ "action": "account_key", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid" }' '[::1]:7076'
  225. {
  226. "key": "ED4EDFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  227. }
  228.  
  229. $ curl -g -d '{ "action": "password_change", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "password": "7357598.,." }' '[::1]:7076'
  230. {
  231. "changed": "1"
  232. }
  233. :~/bin$ curl -g -d '{ "action": "password_enter", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "password": "xxxxxxxxxxx" }' '[::1]:7076'
  234. {
  235. "valid": "1"
  236. }
  237. :~/bin$ curl -g -d '{ "action": "password_valid", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }' '[::1]:7076'
  238. {
  239. "valid": "1"
  240. }
  241.  
  242.  
  243. :~/bin/rai-10.0.1-Linux/bin$ ./rai_node --daemon --debug_block_count
  244. Error deserializing config
  245.  
  246. https://github.com/nanocurrency/raiblocks/issues/136
  247.  
  248. fardeyo, close wallet and rename config.json in %LOCALAPPDATA%\RaiBlocks to config_old.json
  249.  
  250. ?=??????????????===============================================
  251. https://www.nanode.co/docs#representative
  252. https://forum.raiblocks.net/t/help-transfer/5226/5
  253. https://nanowat.ch
  254.  
  255. https://nano-miner.com/
  256. Withdraw Pending XRB
  257. Transfered: 34.81600 uXRB
  258. Block: 83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD
  259.  
  260. https://www.reddit.com/r/RaiBlocks/comments/7rqsok/received_pending_deposit_to_balance_make_sure/
  261. ===================================================================
  262. ::activate Block with balance pendings::
  263.  
  264. TX: https://raiblocks.net/block/index.php?h=94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C
  265. Block 94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C
  266.  
  267. :~/bin$ curl -g -d '{ "action": "block", "hash": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C" }' '[::1]:7076'
  268. {
  269. "contents": "{\n \"type\": \"send\",\n \"previous\": \"ECF44EF07DB86CED3E23FEB09B77AE635881386BAB34C2610138B0C5842AD541\",\n \"destination\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"balance\": \"03BBEF45723DC791FD13393A50A97000\",\n \"work\": \"331b0d00df1bb44c\",\n \"signature\": \"88A881D94BD00D801A58B8F2100E02F05164C2D3BF15F1B5D8D5C2E46C14B98B6A069FAB6E481335D095C397C7F0C3D9B5CBB15B6A88E28131E6A50407F7B10B\"\n}\n"
  270. }
  271.  
  272. wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "block_account", "hash": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C" }' '[::1]:7076'
  273. {
  274. "account": "xrb_1niabkx3gbxit5j5yyqcpas71dkffggbr6zpd3heui8rpoocm5xqbdwq44oh"
  275. }
  276.  
  277. :~/bin$ curl -g -d '{ "action": "blocks_info", "hashes": ["94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C"], "pending": "true", "source": "true" }' '[::1]:7076'
  278. {
  279. "blocks": {
  280. "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C": {
  281. "block_account": "xrb_1niabkx3gbxit5j5yyqcpas71dkffggbr6zpd3heui8rpoocm5xqbdwq44oh",
  282. "amount": "7835313000000000000000000000000",
  283. "contents": "{\n \"type\": \"send\",\n \"previous\": \"ECF44EF07DB86CED3E23FEB09B77AE635881386BAB34C2610138B0C5842AD541\",\n \"destination\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"balance\": \"03BBEF45723DC791FD13393A50A97000\",\n \"work\": \"331b0d00df1bb44c\",\n \"signature\": \"88A881D94BD00D801A58B8F2100E02F05164C2D3BF15F1B5D8D5C2E46C14B98B6A069FAB6E481335D095C397C7F0C3D9B5CBB15B6A88E28131E6A50407F7B10B\"\n}\n",
  284. "pending": "1",
  285. "source_account": "0"
  286. }
  287. }
  288. }
  289. ============================================================================
  290. ::nano/raiblocks node version::
  291. :~/bin$ curl -g -d '{ "action": "version" }' '[::1]:7076'
  292. {
  293. "rpc_version": "1",
  294. "store_version": "10",
  295. "node_vendor": "RaiBlocks 10.0"
  296. }
  297.  
  298. search pendings
  299. $ curl -g -d '{ "action": "search_pending", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9" }' '[::1]:7076'
  300. {
  301. "started": "true"
  302. }
  303.  
  304.  
  305.  
  306. ============================================================================
  307. blocks "pending":
  308. $ curl -g -d '{ "action": "wallet_pending", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9", "count": "3" }' '[::1]:7076'
  309. {
  310. "blocks": {
  311. "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": [
  312. "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB",
  313. "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD",
  314. "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C"
  315. ]
  316. }
  317. }
  318.  
  319. :~/bin$ curl -g -d '{ "action": "pending", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "count": "1", "source": "true" }' '[::1]:7076'
  320. {
  321. "blocks": {
  322. "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB": {
  323. "amount": "1000000000000000000000000",
  324. "source": "xrb_179nxsajbe6ofad48jma7qio3nbjidqh97jp9kc667jmw67ap98p3e96xwby"
  325. }
  326. }
  327. }
  328.  
  329. $ curl -g -d '{ "action": "pending", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "count": "4", "source": "true" }' '[::1]:7076'
  330. {
  331. "blocks": {
  332. "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB": {
  333. "amount": "1000000000000000000000000",
  334. "source": "xrb_179nxsajbe6ofad48jma7qio3nbjidqh97jp9kc667jmw67ap98p3e96xwby"
  335. },
  336. "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD": {
  337. "amount": "34816000000000003000000000",
  338. "source": "xrb_3jybgajxebuj9kby3xusmn4sqiomzu15trmkwb1xyrynnc7axss3qp1yn679"
  339. },
  340. "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C": {
  341. "amount": "7835313000000000000000000000000",
  342. "source": "xrb_1niabkx3gbxit5j5yyqcpas71dkffggbr6zpd3heui8rpoocm5xqbdwq44oh"
  343. }
  344. }
  345. }
  346.  
  347.  
  348. ::"unchecked" blocks::
  349. :~/bin$ curl -g -d '{ "action": "unchecked", "count": "3" }' '[::1]:7076'
  350. {
  351. "blocks": {
  352. "674D62BDF8E51E0D6D093CBE4E62E4E9FC598E8AA868071CC9744F1C05939171": "{\n \"type\": \"change\",\n \"previous\": \"0089A74F0CAD536A84E56BEBE2C6A13BD8EBE077DA7C0B8B42C149B55A7370DC\",\n \"representative\": \"xrb_3t4y3w4jcjj8pg11gekfadgafjtcnq91zxbgwuh5wdq17uq6tgfrp7zybqf9\",\n \"work\": \"29b6a19047ee7905\",\n \"signature\": \"5BFD7125FE9BFE7FAB5CE7682DAB4651535BD382F89E081E8D6E997463C6F2707FEF633877EA24749D633660CCE61914BC649EA190766D7CB2396CCB22F88A0C\"\n}\n",
  353. "69D0EC6B4E86BED733273F2F9014BF51CF0DA29F5CBAEAD004D36334104E8EEF": "{\n \"type\": \"receive\",\n \"previous\": \"02D143AFF374802C53774CFD50C72670DED38DD2978C6DF2576862428B4254AA\",\n \"source\": \"CD1BC595C08212796C390A88A8BC7025AFFF53C8145E854091767FC7C8926501\",\n \"work\": \"0aee5e8398d7b5c2\",\n \"signature\": \"8A20D4990D9F5172289A261D93452460E2D740A864B85B0E36149F80AC9CCE7F6A9205E7B2483E5494C7E43E7B9D4A6C3036384E22292D3CDED0A6FDEF66410F\"\n}\n",
  354. "F6D91D4E46F5BE82BB87AE0249319AEEFC3294E1C01CF4F445C1B14CF9B31EF7": "{\n \"type\": \"receive\",\n \"previous\": \"02D5AD709DC78E75E77FE28B534AA2977E21E5EF4F094DB8CEFF54A505258DC4\",\n \"source\": \"9F8B3687BF3DED87C4AA052B1977CCB8007A319CC2320ACA10071BF99481F896\",\n \"work\": \"116daaa41a0c170f\",\n \"signature\": \"AA2D5E01D7C40042801EB34DE47E67011A18207411EF067B402125FBAFBA8A1914A270D44D7C5481FFF2B5A719158A9E710B1D3C5FF0F87D1A7D6E4A5914210B\"\n}\n"
  355. }
  356. }
  357.  
  358.  
  359.  
  360. :~/bin$ curl -g -d '{ "action": "account_representative_set", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "representative": "xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg" }' '[::1]:7076'
  361. {
  362. "block": "0000000000000000000000000000000000000000000000000000000000000000"
  363. }
  364.  
  365.  
  366. wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "receive", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "block": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C" }' '[::1]:7076'
  367. {
  368. "block": "0000000000000000000000000000000000000000000000000000000000000000"
  369. }
  370.  
  371.  
  372.  
  373. https://www.nanode.co/docs#rpc-guide-opening-an-account
  374. https://www.nanode.co/docs
  375.  
  376. ::torr3ntz::
  377. https://arenabg.ch/torrents/type:music/
  378.  
  379.  
  380. 7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "work": "58a99418edaa4434", "source": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C", "representative": "xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg" }' '[::1]:7076'
  381. {
  382. "hash": "4C2720CF2D65FE1F7D02432C75A7D9B2968AF6DA729EF4EE47E1CEEF6249DA33",
  383. "block": "{\n \"type\": \"open\",\n \"source\": \"94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C\",\n \"representative\": \"xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg\",\n \"account\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"work\": \"58a99418edaa4434\",\n \"signature\": \"BF2DAD0838A2F2BE390D8DA7988E3FD70BD2B6BD2A10F554534CEAD6B75D8C23A77C9918220CDDE16935AC80E289D11AD96727C81601DC1A6D16D36C8581C106\"\n}\n"
  384. }
  385.  
  386.  
  387. $ curl -g -d '{ "action": "block_create", "type": "open", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "source": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C", "representative": "xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg" }' '[::1]:7076'
  388.  
  389.  
  390. :~/bin/rai-10.0.1-Linux/bin$ curl -g -d '{ "action": "process", "block": "{\"type\": \"open\", \"source\": \"94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C\", \"representative\": \"xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg\", \"account\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\", \"work\": \"a629d57c9fca7d9f\", \"signature\": \"BF2DAD0838A2F2BE390D8DA7988E3FD70BD2B6BD2A10F554534CEAD6B75D8C23A77C9918220CDDE16935AC80E289D11AD96727C81601DC1A6D16D36C8581C106\"}" }' '[::1]:7076'
  391. {
  392. "error": "Gap source block"
  393. }
  394.  
  395.  
  396. ==============================================================================================================================
  397. Offline signing (create block)
  398.  
  399. 1. ::Blocks pending para cada TX pending:: (sirven de source)
  400. $ curl -g -d '{ "action": "accounts_pending", "accounts": ["xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"], "count": "1" }' '[::1]:7076'
  401. {
  402. "blocks": {
  403. "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": [
  404. "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB"
  405. ]
  406. }
  407. }
  408.  
  409. $ curl -g -d '{ "action": "accounts_pending", "accounts": ["xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"], "count": "2" }' '[::1]:7076'
  410. {
  411. "blocks": {
  412. "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": [
  413. "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB",
  414. "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD"
  415. ]
  416. }
  417. }
  418.  
  419. 2. ::Extraer llaves a account-0::
  420.  
  421. curl -g -d '{ "action": "deterministic_key", "seed": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "index": "0" }' '[::1]:7076'
  422. {
  423. "private": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  424. "public": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  425. "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"
  426. }
  427.  
  428. Offline signing (create block)
  429.  
  430. 1. open block: (primera y unica vez)
  431.  
  432. :~/bin$ curl -g -d '{ "action": "block_create", "type": "open", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "representative": "xrb_35jdmecuxmxbu13wjappphrsjqbuny9isjubniqegto5gf1p67i7tm78bfyd", "source": "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB" }' '[::1]:7076'
  433. {
  434. "hash": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C",
  435. "block": "{\n \"type\": \"open\",\n \"source\": \"3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB\",\n \"representative\": \"xrb_35jdmecuxmxbu13wjappphrsjqbuny9isjubniqegto5gf1p67i7tm78bfyd\",\n \"account\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"work\": \"ca4bcae644956776\",\n \"signature\": \"49D096D3B9CFC26049B595F5EBC69AD627C1FADA339EEFA258B989045E3E89BF8E4850541A0828628173D4081F7BC73FF26C9E5D19D1C7D186172E1EF2C4DF07\"\n}\n"
  436. }
  437.  
  438. 2. receive block:
  439. :~/bin$ curl -g -d '{ "action": "block_create", "type": "receive", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "source": "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB", "previous": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C" }' '[::1]:7076'
  440. {
  441. "hash": "6360636EF1DB978846F8C5C1B4E732127F53282E96EBC866FB6FCC8539E0D09B",
  442. "block": "{\n \"type\": \"receive\",\n \"previous\": \"97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C\",\n \"source\": \"3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB\",\n \"work\": \"2f660fa7621b8037\",\n \"signature\": \"EF50333D86E5011644925F4AC710433C5315ABFA714595952F926AD5DBB7CC14C5523310BABD6C7D85C0740F08CCB0BA13742FADE7E6F09506B918112CC13709\"\n}\n"
  443. }
  444.  
  445. 3. process open block (send to the network):
  446. :~/bin$ curl -g -d '{ "action": "process", "block": "{\n \"type\": \"open\",\n \"source\": \"3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB\",\n \"representative\": \"xrb_35jdmecuxmxbu13wjappphrsjqbuny9isjubniqegto5gf1p67i7tm78bfyd\",\n \"account\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"work\": \"ca4bcae644956776\",\n \"signature\": \"49D096D3B9CFC26049B595F5EBC69AD627C1FADA339EEFA258B989045E3E89BF8E4850541A0828628173D4081F7BC73FF26C9E5D19D1C7D186172E1EF2C4DF07\"\n}\n" }' '[::1]:7076'
  447. {
  448. "hash": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C"
  449. }
  450.  
  451. Bingo!!! habemus hash. Con ese hash de respuesta, finalmente la cuenta se activa y ha procesado el 1er Pending !!!!!
  452. https://nanowat.ch/account/xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid
  453. https://nanowat.ch/block/97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C
  454.  
  455.  
  456. :: restan dos pendings mas::
  457. $ curl -g -d '{ "action": "accounts_pending", "accounts": ["xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"], "count": "2" }' '[::1]:7076'
  458. {
  459. "blocks": {
  460. "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": [
  461. "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD",
  462. "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C"
  463. ]
  464. }
  465. }
  466. ::offline receive block (2)::
  467. :~/bin$ curl -g -d '{ "action": "block_create", "type": "receive", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "source": "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD", "previous": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C" }' '[::1]:7076'
  468. {
  469. "hash": "90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14",
  470. "block": "{\n \"type\": \"receive\",\n \"previous\": \"97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C\",\n \"source\": \"83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD\",\n \"work\": \"9a2937b845389eb7\",\n \"signature\": \"D6FCA5A9883E0988285AEEDB7CFC754F763EC468453A0000C460ACCFFE260644AB65F0D340832342D786825CE461C402D996E9C2F3FDAB4BAFC8E0F04D2A070A\"\n}\n"
  471. }
  472.  
  473. ::process offline receive block (next pending)
  474. :~/bin$ curl -g -d '{ "action": "process", "block": "{\n \"type\": \"receive\",\n \"previous\": \"97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C\",\n \"source\": \"83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD\",\n \"work\": \"9a2937b845389eb7\",\n \"signature\": \"D6FCA5A9883E0988285AEEDB7CFC754F763EC468453A0000C460ACCFFE260644AB65F0D340832342D786825CE461C402D996E9C2F3FDAB4BAFC8E0F04D2A070A\"\n}\n" }' '[::1]:7076'
  475. {
  476. "hash": "90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14"
  477. }
  478.  
  479. ::offline receive block (3/last)::
  480. $ curl -g -d '{ "action": "block_create", "type": "receive", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "source": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C", "previous": "90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14" }' '[::1]:7076'
  481. {
  482. "hash": "0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2",
  483. "block": "{\n \"type\": \"receive\",\n \"previous\": \"90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14\",\n \"source\": \"94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C\",\n \"work\": \"5fff5037435cbfa8\",\n \"signature\": \"153F774C1EE9D07CD09812905D74FCC30F42F9865EA88D42D86E34ABDCA178A4D0D9FA6C6A5BCE7D788F4241C2EDC303049954E0C2046006906B56490A359306\"\n}\n"
  484. }
  485.  
  486. ::process offline receive block (last pending)
  487. :~/bin$ curl -g -d '{ "action": "process", "block": "{\n \"type\": \"receive\",\n \"previous\": \"90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14\",\n \"source\": \"94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C\",\n \"work\": \"5fff5037435cbfa8\",\n \"signature\": \"153F774C1EE9D07CD09812905D74FCC30F42F9865EA88D42D86E34ABDCA178A4D0D9FA6C6A5BCE7D788F4241C2EDC303049954E0C2046006906B56490A359306\"\n}\n" }' '[::1]:7076'
  488. {
  489. "hash": "0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2"
  490. }
  491.  
  492. =====================================================================================================================
  493. :~/bin$ curl -g -d '{ "action": "wallet_frontiers", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9" }' '[::1]:7076'
  494. {
  495. "frontiers": {
  496. "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": "0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2"
  497. }
  498. }
  499.  
  500. ==================================================================================================================
  501. ::Enviar (Send) Block::
  502.  
  503. calcular balance en krai to raw:
  504. :~/bin$ curl -g -d '{ "action": "krai_to_raw", "amount": "7835348816" }' '[::1]:7076'
  505. {
  506. "amount": "7835348816000000000000000000000000000"
  507. }
  508.  
  509. calcular monto a enviar en krai to raw:
  510. :~/bin$ curl -g -d '{ "action": "krai_to_raw", "amount": "10" }' '[::1]:7076'
  511. {
  512. "amount": "10000000000000000000000000000"
  513. }
  514.  
  515. :~/bin$ curl -g -d '{ "action": "krai_from_raw", "amount": "10000000000000000000000000000" }' '[::1]:7076'
  516. {
  517. "amount": "10"
  518. }
  519.  
  520. generando block para send en offline:
  521.  
  522. :~/bin$ curl -g -d '{ "action": "block_create", "type": "send", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "destination": "xrb_14oxmqyjg6854tyz1zo57e4zkgspssgggja7ptgajub9mr5jcsrz66pg7fpr", "balance": "7835348816000000000000000000000000000", "amount": "10000000000000000000000000000", "previous": "0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2" }' '[::1]:7076'
  523. {
  524. "hash": "70360681FE9E05E9E88215DD9656879A9CD7CBFD2CF8E290A1685C557829D1BE",
  525. "block": "{\n \"type\": \"send\",\n \"previous\": \"0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2\",\n \"destination\": \"xrb_14oxmqyjg6854tyz1zo57e4zkgspssgggja7ptgajub9mr5jcsrz66pg7fpr\",\n \"balance\": \"05E50885A111B6C8F724753F70000000\",\n \"work\": \"2e1734d361aa5cce\",\n \"signature\": \"08BAAE5F7B85AF689C1151F8E9134D1F8D395B8C4245F1AFA586F552C22C04AC0E80B35BF720586847526E7F6741DB2457D8022F370CF7B42FF70D26706B3E0B\"\n}\n"
  526. }
  527.  
  528. ::Error "Overspend" en el calculo del balance::
  529. ~/bin$ curl -g -d '{ "action": "process", "block": "{\n \"type\": \"send\",\n \"previous\": \"0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2\",\n \"destination\": \"xrb_14oxmqyjg6854tyz1zo57e4zkgspssgggja7ptgajub9mr5jcsrz66pg7fpr\",\n \"balance\": \"05E50885A111B6C8F724753F70000000\",\n \"work\": \"2e1734d361aa5cce\",\n \"signature\": \"08BAAE5F7B85AF689C1151F8E9134D1F8D395B8C4245F1AFA586F552C22C04AC0E80B35BF720586847526E7F6741DB2457D8022F370CF7B42FF70D26706B3E0B\"\n}\n" }' '[::1]:7076'
  530. {
  531. "error": "Overspend"
  532. }
  533.  
  534. ~/bin$ curl -g -d '{ "action": "mrai_to_raw", "amount": "10000" }' '[::1]:7076'
  535. {
  536. "amount": "10000000000000000000000000000000000"
  537. }
  538.  
  539.  
  540. ::generando block para send en offline::
  541. ~/bin$ curl -g -d '{ "action": "krai_to_raw", "amount": "10" }' '[::1]:7076'{
  542. "amount": "10000000000000000000000000000"
  543. }
  544. wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "block_create", "type": "send", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "destination": "xrb_14oxmqyjg6854tyz1zo57e4zkgspssgggja7ptgajub9mr5jcsrz66pg7fpr", "balance": "7835348816000000000003000000000", "amount": "10000000000000000000000000000", "previous": "0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2" }' '[::1]:7076'
  545. {
  546. "hash": "212C0A69E4ADE2B3B4EC9A4A4C6263FB4272DDFC85BDA7A5971A82FFF568980C",
  547. "block": "{\n \"type\": \"send\",\n \"previous\": \"0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2\",\n \"destination\": \"xrb_14oxmqyjg6854tyz1zo57e4zkgspssgggja7ptgajub9mr5jcsrz66pg7fpr\",\n \"balance\": \"00000062C510D3BA34183F6C94D05E00\",\n \"work\": \"cfeea93856009b40\",\n \"signature\": \"9B62CE597EB8FD4B0583F0D71F7D8C06FB122185191509A0283A43A4DDE751C3DEE835ED935C2C217DCD00B8E21C99D0102C5188B66AFFFAAFACA54D01BE5D06\"\n}\n"
  548. }
  549.  
  550. wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "process", "block": "{\n \"type\": \"send\",\n \"previous\": \"0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2\",\n \"destination\": \"xrb_14oxmqyjg6854tyz1zo57e4zkgspssgggja7ptgajub9mr5jcsrz66pg7fpr\",\n \"balance\": \"00000062C510D3BA34183F6C94D05E00\",\n \"work\": \"cfeea93856009b40\",\n \"signature\": \"9B62CE597EB8FD4B0583F0D71F7D8C06FB122185191509A0283A43A4DDE751C3DEE835ED935C2C217DCD00B8E21C99D0102C5188B66AFFFAAFACA54D01BE5D06\"\n}\n" }' '[::1]:7076'
  551. {
  552. "hash": "212C0A69E4ADE2B3B4EC9A4A4C6263FB4272DDFC85BDA7A5971A82FFF568980C"
  553. }
  554. ================================================
  555. error en nano_wallet al iniciar:
  556. Exception while running wallet: No such node (wallet)
  557.  
  558. Es debido a que en el archivo de configuración no aparece la wallet asociada al nodo:
  559. En ~/RaiBlocks editar config.json y agregue las lineas:
  560. "version": "4",
  561. "wallet": "9694A4BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  562. "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid",
  563. ===================================================================================
  564. ::Unit Calculators::
  565. http://www.dermarki.de/cryptocurrency/raiblocks_unit_conversion.php
  566. https://nanoo.tools/unit-converter?unit=Mnano&amount=0.0001
  567.  
  568. ======================================================================================================================
  569. ::cpuminer::
  570. https://rumorscity.com/2014/01/04/compile-and-install-cpuminer-on-linux-centos/
  571. https://github.com/pooler/cpuminer
  572. ::cpuminer-opt::
  573. https://bitcointalk.org/index.php?topic=1326803.0
  574. https://github.com/JayDDee/cpuminer-opt/releases
  575. http://cryptomining-blog.com/tag/cryptonight-cpu-miner/
  576. ::Sumo Easy Miner::
  577. https://bitcointalk.org/index.php?topic=2163270
  578. https://github.com/sumoprojects/SumoEasyMiner
  579.  
  580. ::cpuminer-opt::
  581. wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ ./autogen.sh
  582. wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ CFLAGS="-O3 -march=native -Wall" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
  583. Additional optional compile flags, add the following to CFLAGS to activate:
  584.  
  585. -DUSE_SPH_SHA
  586. wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ CFLAGS="-O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
  587. wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ time make 2>&1 | tee make.log
  588.  
  589. routing para IP del pool easyhash.io:
  590. wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ sudo ip route add 188.166.122.231/32 via 172.25.19.11
  591. wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ ./cpuminer -a cryptonight -o stratum+tcp://etn.easyhash.io:3631 -u etnjxRnUyZRGnxPpdpdA1FGqS2zpaSe849ujwvitV8ynQAgZ1Yv11QWP894Ehr2CnHhcPq5k3RmBwTANEYrKPoMp3xrUuMZrT9
  592.  
  593. ********** cpuminer-opt 3.8.4 ***********
  594. A CPU miner with multi algo support and optimized for CPUs
  595. with AES_NI and AVX2 and SHA extensions.
  596. BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT
  597.  
  598. CPU: Intel(R) Xeon(R) CPU L5420 @ 2.50GHz.
  599. SW built on Mar 22 2018 with GCC 4.9.2.
  600. CPU features: SSE2.
  601. SW features: SSE2.
  602. Algo features: SSE2 AES.
  603. Start mining with SSE2.
  604.  
  605. [2018-03-23 08:42:55] Starting Stratum on stratum+tcp://etn.easyhash.io:3631
  606. [2018-03-23 08:42:55] 8 miner threads started, using 'cryptonight' algorithm.
  607. [2018-03-23 08:42:56] Stratum difficulty set to 50000
  608. [2018-03-23 08:42:59] CPU #0: 66 H, 21.22 H/s
  609. [2018-03-23 08:42:59] CPU #1: 66 H, 21.23 H/s
  610. [2018-03-23 08:42:59] CPU #2: 66 H, 21.23 H/s
  611. [2018-03-23 08:42:59] CPU #3: 66 H, 21.24 H/s
  612. [2018-03-23 08:42:59] CPU #4: 66 H, 21.23 H/s
  613. [2018-03-23 08:42:59] CPU #6: 66 H, 21.24 H/s
  614. [2018-03-23 08:42:59] CPU #5: 66 H, 21.20 H/s
  615. [2018-03-23 08:42:59] CPU #7: 66 H, 21.19 H/s
  616.  
  617. ===============================================================================
  618. ::cpuminer-opt on CentOS 7.x::
  619. [wilderman@sullivan wrfncl]$ sudo yum install jansson-devel
  620. [wilderman@sullivan wrfncl]$ sudo yum install gmp-devel
  621. [wilderman@sullivan wrfncl]$ sudo yum install curl-devel
  622. [wilderman@sullivan wrfncl]$ sudo yum install openssl-devel
  623.  
  624. $ cd sources/
  625. [wilderman@sullivan sources]$ wget https://github.com/JayDDee/cpuminer-opt/archive/v3.8.4.1.zip
  626. [wilderman@sullivan sources]$ mv v3.8.4.1.zip cpuminer-opt_v3.8.4.1.zip
  627.  
  628. [wilderman@sullivan sources]$ unzip cpuminer-opt_v3.8.4.1.zip
  629. [wilderman@sullivan sources]$ cd cpuminer-opt-3.8.4.1/
  630. [wilderman@sullivan sources]$ ./autogen.sh
  631. [wilderman@sullivan cpuminer-opt-3.8.4.1]$ CFLAGS="-O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
  632. [wilderman@sullivan cpuminer-opt-3.8.4.1]$ make 2>&1 | tee make.log
  633.  
  634. ::Debian/Ubuntu::
  635. wilderman@copiapo:~/sources/cpuminer-opt-3.8.4.1$ sudo apt install libjansson-dev libgmp-dev libcurl4-openssl-dev libssl-dev automake
  636. wilderman@copiapo:~/sources/cpuminer-opt-3.8.4.1$ CFLAGS="-O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
  637.  
  638.  
  639. en wazowski agregar la linea iptables:
  640. iptables -t nat -A POSTROUTING -s 10.0.3.2 -d 188.166.122.231 -o eth0 -j SNAT --to-source 172.25.19.6
  641.  
  642. [wilderman@sullivan cpuminer-opt-3.8.4.1]$ nmap -Pn -sT -p 3631 etn.easyhash.io
  643.  
  644. Starting Nmap 6.40 ( http://nmap.org ) at 2018-03-23 13:26 -05
  645. Nmap scan report for etn.easyhash.io (188.166.122.231)
  646. Host is up (0.17s latency).
  647. PORT STATE SERVICE
  648. 3631/tcp open unknown
  649.  
  650. Nmap done: 1 IP address (1 host up) scanned in 0.35 seconds
  651. ==================================================================================================================
  652. [wilderman@sullivan cpuminer-opt-3.8.4]$ CFLAGS="-g -O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
  653. [wilderman@sullivan cpuminer-opt-3.8.4]$ CFLAGS="-g -O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" LDFLAGS="-Wl,-rpath -Wl,/usr/local" ./configure --with-curl=/usr/local
  654. [wilderman@sullivan cpuminer-opt-3.8.4.1]$ CFLAGS="-O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib -lcurl" ./configure --with-curl=/usr/local
  655.  
  656.  
  657.  
  658. [wilderman@sullivan cpuminer-opt-3.8.4]$ gdb --args ./cpuminer -a cryptonight -o stratum+tcp://etn.easyhash.io:3631 -u etnjxRnUyZRGnxPpdpdA1FGqS2zpaSe849ujwvitV8ynQAgZ1Yv11QWP894Ehr2CnHhcPq5k3RmBwTANEYrKPoMp3xrUuMZrT9
  659. GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7_4.1
  660. Copyright (C) 2013 Free Software Foundation, Inc.
  661. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  662. This is free software: you are free to change and redistribute it.
  663. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  664. and "show warranty" for details.
  665. This GDB was configured as "x86_64-redhat-linux-gnu".
  666. For bug reporting instructions, please see:
  667. <http://www.gnu.org/software/gdb/bugs/>...
  668. Reading symbols from /home/wilderman/sources/cpuminer-opt-3.8.4/cpuminer...done.
  669. (gdb) run
  670. Starting program: /home/wilderman/sources/cpuminer-opt-3.8.4/./cpuminer -a cryptonight -o stratum+tcp://etn.easyhash.io:3631 -u etnjxRnUyZRGnxPpdpdA1FGqS2zpaSe849ujwvitV8ynQAgZ1Yv11QWP894Ehr2CnHhcPq5k3RmBwTANEYrKPoMp3xrUuMZrT9
  671. [Thread debugging using libthread_db enabled]
  672. Using host libthread_db library "/lib64/libthread_db.so.1".
  673.  
  674. ********** cpuminer-opt 3.8.4 ***********
  675. A CPU miner with multi algo support and optimized for CPUs
  676. with AES_NI and AVX2 and SHA extensions.
  677. BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT
  678.  
  679. CPU: Intel(R) Xeon(R) CPU E5-2698 v3 @ 2.30GHz.
  680. SW built on Mar 23 2018 with GCC 4.8.5.
  681. CPU features: SSE2 AES AVX AVX2.
  682. SW features: SSE2 AES AVX AVX2.
  683. Algo features: SSE2 AES.
  684. Start mining with AES SSE2.
  685.  
  686. [New Thread 0x2aaab0e21700 (LWP 29681)]
  687. [New Thread 0x2aaab1436700 (LWP 29682)]
  688. [2018-03-23 14:17:20] Starting Stratum on stratum+tcp://etn.easyhash.io:3631
  689.  
  690. Program received signal SIGSEGV, Segmentation fault.
  691. [Switching to Thread 0x2aaab1436700 (LWP 29682)]
  692. 0x00002aaaaacf3cbe in dprintf_formatf () from /lib64/libcurl.so.4
  693. Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-21.el7.x86_64 glibc-2.17-196.el7_4.2.x86_64 gmp-6.0.0-15.el7.x86_64 jansson-2.10-1.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libcom_err-1.42.9-10.el7.x86_64 libcurl-7.29.0-42.el7_4.1.x86_64 libgcc-4.8.5-16.el7_4.2.x86_64 libidn-1.28-4.el7.x86_64 libselinux-2.5-11.el7.x86_64 libssh2-1.4.3-10.el7_2.1.x86_64 libstdc++-4.8.5-16.el7_4.2.x86_64 nspr-4.13.1-1.0.el7_3.x86_64 nss-3.28.4-15.el7_4.x86_64 nss-softokn-freebl-3.28.3-8.el7_4.x86_64 nss-util-3.28.4-3.el7.x86_64 openldap-2.4.44-5.el7.x86_64 openssl-libs-1.0.2k-8.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64
  694. (gdb) bt
  695. #0 0x00002aaaaacf3cbe in dprintf_formatf () from /lib64/libcurl.so.4
  696. #1 0x00002aaaaacf522d in curl_maprintf () from /lib64/libcurl.so.4
  697. #2 0x00002aaaaacda8f9 in create_hostcache_id () from /lib64/libcurl.so.4
  698. #3 0x00002aaaaacdac67 in Curl_resolv () from /lib64/libcurl.so.4
  699. #4 0x00002aaaaacf1fd3 in Curl_connect () from /lib64/libcurl.so.4
  700. #5 0x00002aaaaad023a0 in multi_runsingle () from /lib64/libcurl.so.4
  701. #6 0x00002aaaaad03221 in curl_multi_perform () from /lib64/libcurl.so.4
  702. #7 0x00002aaaaacfa523 in curl_easy_perform () from /lib64/libcurl.so.4
  703. #8 0x000000000040f82b in stratum_connect (sctx=sctx@entry=0x914a80 <stratum>, url=<optimized out>)
  704. at util.c:1181
  705. #9 0x0000000000406d75 in stratum_thread (userdata=<optimized out>) at cpu-miner.c:2389
  706. #10 0x00002aaaab362e25 in start_thread () from /lib64/libpthread.so.0
  707. #11 0x00002aaaac7da34d in clone () from /lib64/libc.so.6
  708.  
  709. ============================================================================================
  710. linux ip route
  711. wceren@canete:~/sources/cpuminer-opt-3.8.6$ sudo ip route add 188.166.122.231/32 via 172.25.19.11
  712.  
  713. ============================================================================================
  714. wilderman@wilderman-Precision-T1650:~/git/raiblocks$ git pull
  715. remote: Counting objects: 2054, done.
  716. remote: Compressing objects: 100% (9/9), done.
  717. remote: Total 2054 (delta 1010), reused 1015 (delta 1010), pack-reused 1035
  718. Receiving objects: 100% (2054/2054), 1023.65 KiB | 1.55 MiB/s, done.
  719. Resolving deltas: 100% (1618/1618), completed with 109 local objects.
  720. From https://github.com/nanocurrency/raiblocks
  721. 9fb407c..f3e604c master -> origin/master
  722. * [new branch] database_abstraction -> origin/database_abstraction
  723. * [new branch] release_v11 -> origin/release_v11
  724. * [new branch] releases/v12 -> origin/releases/v12
  725. * [new branch] releases/v13 -> origin/releases/v13
  726. * [new branch] releases/v14 -> origin/releases/v14
  727. * [new branch] rocksdb -> origin/rocksdb
  728. * [new branch] single_fanout_set -> origin/single_fanout_set
  729. * [new branch] wallet_separation -> origin/wallet_separation
  730. * [new tag] V11.2 -> V11.2
  731. * [new tag] V13.0 -> V13.0
  732. * [new tag] V14.1 -> V14.1
  733. * [new tag] V11.0 -> V11.0
  734. * [new tag] V11.1 -> V11.1
  735. * [new tag] V12.0 -> V12.0
  736. * [new tag] V12.1 -> V12.1
  737. * [new tag] V14.0 -> V14.0
  738. Updating 9fb407c..f3e604c
  739. Fast-forward
  740. .gitignore | 1 +
  741. .travis.yml | 14 -
  742. CMakeLists.txt | 72 +---
  743. FindBoost.cmake | 117 +++---
  744. FindCryptoPP.cmake | 108 -----
  745. FindLevelDB.cmake | 18 -
  746. README.md | 64 ++-
  747. appveyor.yml | 44 ++
  748. bootstrap.py | 21 -
  749. ci/bootstrap_boost.sh | 30 +-
  750. ci/build-docker-image.sh | 15 +-
  751. ci/deploy-docker.sh | 38 +-
  752. ci/test.sh | 2 +-
  753. docker/node/Dockerfile | 26 +-
  754. docker/node/build.sh | 38 +-
  755. docker/node/config/beta.json | 60 +++
  756. docker/node/{config.json => config/live.json} | 0
  757. docker/node/config/test.json | 67 +++
  758. docker/node/entry.sh | 65 ++-
  759. doxygen.config | 2 +-
  760. images/logo.svg | 1 +
  761. rai/blockstore.cpp | 135 +++---
  762. rai/blockstore.hpp | 98 +++--
  763. rai/common.cpp | 186 ++++++---
  764. rai/common.hpp | 34 +-
  765. rai/core_test/block.cpp | 99 ++++-
  766. rai/core_test/block_store.cpp | 110 ++---
  767. rai/core_test/conflicts.cpp | 37 +-
  768. rai/core_test/gap_cache.cpp | 9 +-
  769. rai/core_test/interface.cpp | 16 +
  770. rai/core_test/ledger.cpp | 966 +++++++++++++++++++++++++++++++++++++++----
  771. rai/core_test/message.cpp | 61 ++-
  772. rai/core_test/message_parser.cpp | 68 ++-
  773. rai/core_test/network.cpp | 72 ++--
  774. rai/core_test/node.cpp | 481 +++++++++++++++-------
  775. rai/core_test/peer_container.cpp | 34 +-
  776. rai/core_test/processor_service.cpp | 6 +-
  777. rai/core_test/rpc.cpp | 669 +++++++++++++++++++++++++++---
  778. rai/core_test/uint256_union.cpp | 38 +-
  779. rai/core_test/wallet.cpp | 68 +--
  780. rai/core_test/wallets.cpp | 2 +-
  781. rai/core_test/work_pool.cpp | 19 +-
  782. rai/ledger.cpp | 411 ++++++++++++++----
  783. rai/ledger.hpp | 15 +-
  784. rai/lib/blocks.cpp | 410 +++++++++++++++++-
  785. rai/lib/blocks.hpp | 72 +++-
  786. rai/lib/interface.cpp | 13 +
  787. rai/lib/interface.h | 6 +
  788. rai/lib/numbers.cpp | 120 ++----
  789. rai/lib/numbers.hpp | 1 -
  790. rai/lib/work.cpp | 6 +-
  791. rai/node/bootstrap.cpp | 907 ++++++++++++++++++----------------------
  792. rai/node/bootstrap.hpp | 110 +++--
  793. rai/node/common.cpp | 381 ++++++++---------
  794. rai/node/common.hpp | 62 ++-
  795. rai/node/node.cpp | 1463 ++++++++++++++++++++++++++++++++++++++++++++---------------------
  796. rai/node/node.hpp | 168 +++++---
  797. rai/node/rpc.cpp | 945 +++++++++++++++++++++++++++++-------------
  798. rai/node/rpc.hpp | 10 +-
  799. rai/node/stats.cpp | 438 ++++++++++++++++++++
  800. rai/node/stats.hpp | 413 +++++++++++++++++++
  801. rai/node/testing.cpp | 70 ++--
  802. rai/node/utility.cpp | 28 +-
  803. rai/node/utility.hpp | 5 +-
  804. rai/node/wallet.cpp | 315 ++++++--------
  805. rai/node/wallet.hpp | 10 +-
  806. rai/qt/qt.cpp | 195 ++++++++-
  807. rai/qt/qt.hpp | 16 +
  808. rai/qt_test/qt.cpp | 2 +-
  809. rai/rai_node/entry.cpp | 165 +-------
  810. rai/slow_test/node.cpp | 39 +-
  811. rep_weights.bin | Bin 3280 -> 4240 bytes
  812. util/gpg_keys/argakiig.asc | 31 ++
  813. 73 files changed, 7574 insertions(+), 3264 deletions(-)
  814. delete mode 100644 FindCryptoPP.cmake
  815. delete mode 100644 FindLevelDB.cmake
  816. create mode 100644 appveyor.yml
  817. delete mode 100644 bootstrap.py
  818. create mode 100644 docker/node/config/beta.json
  819. rename docker/node/{config.json => config/live.json} (100%)
  820. create mode 100644 docker/node/config/test.json
  821. create mode 100644 images/logo.svg
  822. create mode 100644 rai/node/stats.cpp
  823. create mode 100644 rai/node/stats.hpp
  824. create mode 100644 util/gpg_keys/argakiig.asc
  825. wilderman@wilderman-Precision-T1650:~/git/raiblocks
  826.  
  827.  
  828.  
  829. git pull
  830. git remote git fetch git push git pull
  831. https://www.atlassian.com/git/tutorials/syncing/git-pull
  832.  
  833. The git pull command is used to fetch and download content from a remote repository and immediately update the local repository to match that content. Merging remote upstream changes into your local repository is a common task in Git-based collaboration work flows. The git pull command is actually a combination of two other commands, git fetch followed by git merge. In the first stage of operation git pull will execute a git fetch scoped to the local branch that HEAD is pointed at. Once the content is downloaded, git pull will enter a merge workflow. A new merge commit will be-created and HEAD updated to point at the new commit.
  834.  
  835.  
  836. $ git fetch origin
  837. remote: Counting objects: 1158, done.
  838. remote: Total 1158 (delta 629), reused 630 (delta 629), pack-reused 528
  839. Receiving objects: 100% (1158/1158), 528.84 KiB | 0 bytes/s, done.
  840. Resolving deltas: 100% (898/898), completed with 103 local objects.
  841. From https://github.com/clemahieu/raiblocks
  842. cec5dc4..ca5bd94 master -> origin/master
  843. * [new branch] database_abstraction -> origin/database_abstraction
  844. * [new branch] release_v11 -> origin/release_v11
  845. * [new branch] releases/v12 -> origin/releases/v12
  846. * [new branch] releases/v13 -> origin/releases/v13
  847. * [new branch] releases/v14 -> origin/releases/v14
  848. * [new branch] rocksdb -> origin/rocksdb
  849. * [new branch] single_fanout_set -> origin/single_fanout_set
  850. * [new branch] wallet_separation -> origin/wallet_separation
  851. * [new tag] V11.0 -> V11.0
  852. * [new tag] V11.1 -> V11.1
  853. * [new tag] V11.2 -> V11.2
  854. * [new tag] V12.0 -> V12.0
  855. * [new tag] V13.0 -> V13.0
  856. * [new tag] V14.2 -> V14.2
  857. * [new tag] V12.1 -> V12.1
  858. * [new tag] V14.0 -> V14.0
  859. * [new tag] V14.1 -> V14.1
  860.  
  861. m0n0lithic-desktop:~/git.build/raiblocks$ git checkout master
  862. M CMakeLists.txt
  863. M miniupnp
  864. Already on 'master'
  865. Your branch is behind 'origin/master' by 102 commits, and can be fast-forwarded.
  866. (use "git pull" to update your local branch)
  867.  
  868. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git merge origin/master
  869. Updating cec5dc4..ca5bd94
  870. error: Your local changes to the following files would be overwritten by merge:
  871. CMakeLists.txt
  872. Please, commit your changes or stash them before you can merge.
  873. Aborting
  874.  
  875. $ git merge origin/master
  876. Updating cec5dc4..ca5bd94
  877. error: Your local changes to the following files would be overwritten by merge:
  878. CMakeLists.txt
  879. Please, commit your changes or stash them before you can merge.
  880. Aborting
  881.  
  882. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git fetch --dry-run
  883. remote: Counting objects: 32, done.
  884. remote: Compressing objects: 100% (10/10), done.
  885. remote: Total 32 (delta 21), reused 21 (delta 19), pack-reused 3
  886. Unpacking objects: 100% (32/32), done.
  887. From https://github.com/clemahieu/raiblocks
  888. ca5bd94..0c683c1 master -> origin/master
  889. * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
  890.  
  891. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git fetch origin --dry-run
  892. From https://github.com/clemahieu/raiblocks
  893. ca5bd94..0c683c1 master -> origin/master
  894. * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
  895. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git branch -a
  896. * master
  897. remotes/origin/HEAD -> origin/master
  898. remotes/origin/V10.0
  899. remotes/origin/V9.0
  900. remotes/origin/block_queue
  901. remotes/origin/bootstrap_thread
  902. remotes/origin/bootstrap_thread2
  903. remotes/origin/database_abstraction
  904. remotes/origin/flow_control
  905. remotes/origin/forward_bootstrap
  906. remotes/origin/interface
  907. remotes/origin/interface2
  908. remotes/origin/master
  909. remotes/origin/origin/flow_control
  910. remotes/origin/origin/utx
  911. remotes/origin/pull_once_per_ip
  912. remotes/origin/pulls/147
  913. remotes/origin/pulls/266
  914. remotes/origin/release_v11
  915. remotes/origin/releases/v12
  916. remotes/origin/releases/v13
  917. remotes/origin/releases/v14
  918. remotes/origin/rocksdb
  919. remotes/origin/single_fanout_set
  920. remotes/origin/timed_uncheck_flush
  921. remotes/origin/ublocks
  922. remotes/origin/wallet_separation
  923.  
  924.  
  925. https://longair.net/blog/2009/04/16/git-fetch-and-merge/
  926. https://adamcod.es/2014/12/10/git-pull-correct-workflow.html
  927.  
  928.  
  929. wilderman@m0n0lithic-desktop:~/git/raiblocks$ git fetch origin --prune
  930. From https://github.com/clemahieu/raiblocks
  931. x [deleted] (none) -> origin/V9.0
  932. x [deleted] (none) -> origin/block_queue
  933. x [deleted] (none) -> origin/bootstrap_thread
  934. x [deleted] (none) -> origin/bootstrap_thread2
  935. x [deleted] (none) -> origin/forward_bootstrap
  936. x [deleted] (none) -> origin/interface
  937. x [deleted] (none) -> origin/interface2
  938. x [deleted] (none) -> origin/origin/utx
  939. x [deleted] (none) -> origin/pull_once_per_ip
  940. x [deleted] (none) -> origin/pulls/147
  941. x [deleted] (none) -> origin/pulls/266
  942. x [deleted] (none) -> origin/timed_uncheck_flush
  943. x [deleted] (none) -> origin/ublocks
  944. remote: Counting objects: 1190, done.
  945. remote: Compressing objects: 100% (19/19), done.
  946. remote: Total 1190 (delta 649), reused 643 (delta 640), pack-reused 531
  947. Receiving objects: 100% (1190/1190), 542.24 KiB | 0 bytes/s, done.
  948. Resolving deltas: 100% (918/918), completed with 107 local objects.
  949. cec5dc4..0c683c1 master -> origin/master
  950. * [new branch] database_abstraction -> origin/database_abstraction
  951. * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
  952. * [new branch] release_v11 -> origin/release_v11
  953. * [new branch] releases/v12 -> origin/releases/v12
  954. * [new branch] releases/v13 -> origin/releases/v13
  955. * [new branch] releases/v14 -> origin/releases/v14
  956. * [new branch] rocksdb -> origin/rocksdb
  957. * [new branch] single_fanout_set -> origin/single_fanout_set
  958. * [new branch] wallet_separation -> origin/wallet_separation
  959. * [new tag] V11.0 -> V11.0
  960. * [new tag] V11.1 -> V11.1
  961. * [new tag] V11.2 -> V11.2
  962. * [new tag] V12.0 -> V12.0
  963. * [new tag] V13.0 -> V13.0
  964. * [new tag] V14.2 -> V14.2
  965. * [new tag] V12.1 -> V12.1
  966. * [new tag] V14.0 -> V14.0
  967. * [new tag] V14.1 -> V14.1
  968.  
  969. wilderman@m0n0lithic-desktop:~/git/raiblocks$ git merge --ff-only origin/master
  970. Updating cec5dc4..0c683c1
  971. Fast-forward
  972. CMakeLists.txt | 4 +-
  973. README.md | 2 +-
  974. appveyor.yml | 2 +-
  975. doxygen.config | 2 +-
  976. rai/blockstore.cpp | 83 +++---
  977. rai/blockstore.hpp | 23 +-
  978. rai/common.cpp | 160 +++++++----
  979. rai/common.hpp | 25 +-
  980. rai/core_test/block.cpp | 20 +-
  981. rai/core_test/block_store.cpp | 63 +----
  982. rai/core_test/conflicts.cpp | 25 +-
  983. rai/core_test/gap_cache.cpp | 6 +-
  984. rai/core_test/ledger.cpp | 396 ++++++++++++---------------
  985. rai/core_test/message.cpp | 55 ++--
  986. rai/core_test/message_parser.cpp | 65 +++--
  987. rai/core_test/network.cpp | 63 +++--
  988. rai/core_test/node.cpp | 463 ++++++++++++++++++++++----------
  989. rai/core_test/peer_container.cpp | 20 +-
  990. rai/core_test/processor_service.cpp | 6 +-
  991. rai/core_test/rpc.cpp | 231 ++++++++++++----
  992. rai/core_test/uint256_union.cpp | 6 +-
  993. rai/core_test/wallet.cpp | 79 ++----
  994. rai/core_test/wallets.cpp | 2 +-
  995. rai/core_test/work_pool.cpp | 19 +-
  996. rai/ledger.cpp | 99 ++-----
  997. rai/ledger.hpp | 35 +--
  998. rai/lib/blocks.cpp | 51 ++--
  999. rai/lib/numbers.cpp | 115 +++-----
  1000. rai/lib/numbers.hpp | 4 -
  1001. rai/lib/work.cpp | 4 +-
  1002. rai/node/bootstrap.cpp | 668 ++++++++++++++++++----------------------------
  1003. rai/node/bootstrap.hpp | 91 +++----
  1004. rai/node/common.cpp | 438 ++++++++++++++++++------------
  1005. rai/node/common.hpp | 114 ++++++--
  1006. rai/node/node.cpp | 1098 +++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
  1007. rai/node/node.hpp | 130 +++++----
  1008. rai/node/rpc.cpp | 258 +++++++++++-------
  1009. rai/node/rpc.hpp | 4 +-
  1010. rai/node/stats.cpp | 441 ++++++++++++++++++++++++++++++
  1011. rai/node/stats.hpp | 414 ++++++++++++++++++++++++++++
  1012. rai/node/utility.cpp | 2 +-
  1013. rai/node/wallet.cpp | 255 ++++--------------
  1014. rai/node/wallet.hpp | 7 +-
  1015. rai/qt/qt.cpp | 158 ++++++++++-
  1016. rai/qt/qt.hpp | 16 ++
  1017. rai/qt_test/qt.cpp | 2 +-
  1018. rai/rai_node/entry.cpp | 6 +-
  1019. rai/slow_test/node.cpp | 40 +--
  1020. util/gpg_keys/argakiig.asc | 31 +++
  1021. 49 files changed, 3909 insertions(+), 2392 deletions(-)
  1022. create mode 100644 rai/node/stats.cpp
  1023. create mode 100644 rai/node/stats.hpp
  1024. create mode 100644 util/gpg_keys/argakiig.asc
  1025.  
  1026.  
  1027.  
  1028.  
  1029. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git fetch origin --prune
  1030. From https://github.com/clemahieu/raiblocks
  1031. x [deleted] (none) -> origin/V9.0
  1032. x [deleted] (none) -> origin/block_queue
  1033. x [deleted] (none) -> origin/bootstrap_thread
  1034. x [deleted] (none) -> origin/bootstrap_thread2
  1035. x [deleted] (none) -> origin/forward_bootstrap
  1036. x [deleted] (none) -> origin/interface
  1037. x [deleted] (none) -> origin/interface2
  1038. x [deleted] (none) -> origin/origin/utx
  1039. x [deleted] (none) -> origin/pull_once_per_ip
  1040. x [deleted] (none) -> origin/pulls/147
  1041. x [deleted] (none) -> origin/pulls/266
  1042. x [deleted] (none) -> origin/timed_uncheck_flush
  1043. x [deleted] (none) -> origin/ublocks
  1044. ca5bd94..0c683c1 master -> origin/master
  1045. * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
  1046.  
  1047. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git diff
  1048. diff --git a/CMakeLists.txt b/CMakeLists.txt
  1049. index ed8844f..eb2c178 100644
  1050. --- a/CMakeLists.txt
  1051. +++ b/CMakeLists.txt
  1052. @@ -81,7 +81,7 @@ if (APPLE)
  1053. elseif (WIN32)
  1054. set (PLATFORM_LINK_FLAGS "")
  1055. else ()
  1056. - set (PLATFORM_LINK_FLAGS "-static-libgcc -static-libstdc++")
  1057. + set (PLATFORM_LINK_FLAGS "-static-libgcc -static-libstdc++ -Wl,-rpath=/opt/Qt/5.11.0/gcc_64/lib")
  1058. if (RAIBLOCKS_ASAN)
  1059. set (PLATFORM_LINK_FLAGS "${PLATFORM_LINK_FLAGS} -fsanitize=address,undefined")
  1060. elseif (RAIBLOCKS_ASAN_INT)
  1061. @@ -100,6 +100,8 @@ if (RAIBLOCKS_GUI)
  1062.  
  1063. find_package (Qt5 COMPONENTS Core Gui Widgets Test ${PLATFORM_QT_PACKAGES})
  1064. include_directories (${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Test_INCLUDE_DIRS})
  1065. + #set(GCC_COVERAGE_LINK_FLAGS "-Wl,-rpath=/opt/Qt/5.11.0/gcc_64/lib")
  1066. + #SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}" )
  1067. endif (RAIBLOCKS_GUI)
  1068.  
  1069. if (RAIBLOCKS_SECURE_RPC)
  1070. diff --git a/miniupnp b/miniupnp
  1071. --- a/miniupnp
  1072. +++ b/miniupnp
  1073. @@ -1 +1 @@
  1074. -Subproject commit e24d7eca28022b959b331b08e6918b58b303c1cf
  1075. +Subproject commit e24d7eca28022b959b331b08e6918b58b303c1cf-dirty
  1076.  
  1077. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git clean -n
  1078. Would remove CML.txt
  1079. Would remove bootstrap_weights.cpp
  1080. Would remove nano_wallet
  1081.  
  1082.  
  1083. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git clean -fdX
  1084. Removing CMakeCache.txt
  1085. Removing CMakeFiles/
  1086. Removing CPackConfig.cmake
  1087. Removing CPackSourceConfig.cmake
  1088. Removing Makefile
  1089. Removing cmake_install.cmake
  1090. Removing gtest/CMakeFiles/
  1091. Removing gtest/Makefile
  1092. Removing gtest/cmake_install.cmake
  1093. Removing libargon2.a
  1094. Removing libblake2.a
  1095. Removing libcryptopp.a
  1096. Removing libed25519.a
  1097. Removing liblmdb.a
  1098. Removing libnode.a
  1099. Removing libqt.a
  1100. Removing librai_lib_static.a
  1101. Removing libsecure.a
  1102. Removing libxxhash.a
  1103. Removing qrc_resources.cpp
  1104. Removing rai_node
  1105. Removing resources.qrc.depends
  1106.  
  1107.  
  1108. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git fetch origin --prune
  1109. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git merge --ff-only origin/master
  1110. Updating cec5dc4..0c683c1
  1111. error: Your local changes to the following files would be overwritten by merge:
  1112. CMakeLists.txt
  1113. Please, commit your changes or stash them before you can merge.
  1114. Aborting
  1115.  
  1116. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git status
  1117. On branch master
  1118. Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
  1119. (use "git pull" to update your local branch)
  1120. Changes not staged for commit:
  1121. (use "git add <file>..." to update what will be committed)
  1122. (use "git checkout -- <file>..." to discard changes in working directory)
  1123. (commit or discard the untracked or modified content in submodules)
  1124.  
  1125. modified: CMakeLists.txt
  1126. modified: miniupnp (modified content, untracked content)
  1127.  
  1128. no changes added to commit (use "git add" and/or "git commit -a")
  1129.  
  1130.  
  1131. $ git stash save "set (PLATFORM_LINK_FLAGS \"-static-libgcc -static-libstdc++ -Wl,-rpath=/opt/Qt/5.11.0/gcc_64/lib\") + #set(GCC_COVERAGE_LINK_FLAGS \"-Wl,-rpath=/opt/Qt/5.11.0/gcc_64/lib\") + #SET(CMAKE_EXE_LINKER_FLAGS \"${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}\" )"
  1132.  
  1133. *** Please tell me who you are.
  1134.  
  1135. Run
  1136.  
  1137. git config --global user.email "[email protected]"
  1138. git config --global user.name "Your Name"
  1139.  
  1140. to set your account's default identity.
  1141. Omit --global to set the identity only in this repository.
  1142.  
  1143. fatal: unable to auto-detect email address (got 'wilderman@m0n0lithic-desktop.(none)')
  1144. Cannot save the current index state
  1145.  
  1146.  
  1147. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git config user.email "[email protected]"
  1148. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git config user.name "Wilderman Ceren"
  1149.  
  1150. $ git stash save "cambios en PLATFORM_LINK_FLAGS #set(GCC_COVERAGE_LINK_FLAGS #SET(CMAKE_EXE_LINKER_FLAGS"Saved working directory and index state On master: cambios en PLATFORM_LINK_FLAGS #set(GCC_COVERAGE_LINK_FLAGS #SET(CMAKE_EXE_LINKER_FLAGS
  1151. HEAD is now at cec5dc4 Fixing formatting.
  1152.  
  1153. $ git status
  1154. On branch master
  1155. Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
  1156. (use "git pull" to update your local branch)
  1157. Changes not staged for commit:
  1158. (use "git add <file>..." to update what will be committed)
  1159. (use "git checkout -- <file>..." to discard changes in working directory)
  1160. (commit or discard the untracked or modified content in submodules)
  1161.  
  1162. modified: miniupnp (modified content, untracked content)
  1163.  
  1164. no changes added to commit (use "git add" and/or "git commit -a")
  1165.  
  1166.  
  1167. wilderman@m0n0lithic-desktop:~/git.build/raiblocks/miniupnp$ git clean -fdX
  1168. Removing miniupnpc/libminiupnpc.a
  1169. Removing miniupnpc/miniupnpcstrings.h
  1170. wilderman@m0n0lithic-desktop:~/git.build/raiblocks/miniupnp$ git clean -fdx
  1171. Removing miniupnpc/CMakeFiles/
  1172. Removing miniupnpc/cmake_install.cmake
  1173. wilderman@m0n0lithic-desktop:~/git.build/raiblocks/miniupnp$
  1174.  
  1175.  
  1176. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git status
  1177. On branch master
  1178. Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
  1179. (use "git pull" to update your local branch)
  1180. Changes not staged for commit:
  1181. (use "git add <file>..." to update what will be committed)
  1182. (use "git checkout -- <file>..." to discard changes in working directory)
  1183. (commit or discard the untracked or modified content in submodules)
  1184.  
  1185. modified: miniupnp (modified content)
  1186.  
  1187. no changes added to commit (use "git add" and/or "git commit -a")
  1188.  
  1189. ilderman@m0n0lithic-desktop:~/git.build/raiblocks/miniupnp$ git stash save "modified: miniupnp/Makefile (modified content)"
  1190. Saved working directory and index state On (no branch): modified: miniupnp/Makefile (modified content)
  1191. HEAD is now at e24d7ec fix error of wrong matched parentheses in miniupnpc-libevent/miniupnpc-libevent.c
  1192.  
  1193. $ git status
  1194. On branch master
  1195. Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
  1196. (use "git pull" to update your local branch)
  1197. nothing to commit, working directory clean
  1198.  
  1199. wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git merge --ff-only origin/master
  1200. Updating cec5dc4..0c683c1
  1201. Fast-forward
  1202. CMakeLists.txt | 4 +-
  1203. README.md | 2 +-
  1204. appveyor.yml | 2 +-
  1205. doxygen.config | 2 +-
  1206. rai/blockstore.cpp | 83 +++---
  1207. rai/blockstore.hpp | 23 +-
  1208. rai/common.cpp | 160 +++++++----
  1209. rai/common.hpp | 25 +-
  1210. rai/core_test/block.cpp | 20 +-
  1211. rai/core_test/block_store.cpp | 63 +----
  1212. rai/core_test/conflicts.cpp | 25 +-
  1213. rai/core_test/gap_cache.cpp | 6 +-
  1214. rai/core_test/ledger.cpp | 396 ++++++++++++---------------
  1215. rai/core_test/message.cpp | 55 ++--
  1216. rai/core_test/message_parser.cpp | 65 +++--
  1217. rai/core_test/network.cpp | 63 +++--
  1218. rai/core_test/node.cpp | 463 ++++++++++++++++++++++----------
  1219. rai/core_test/peer_container.cpp | 20 +-
  1220. rai/core_test/processor_service.cpp | 6 +-
  1221. rai/core_test/rpc.cpp | 231 ++++++++++++----
  1222. rai/core_test/uint256_union.cpp | 6 +-
  1223. rai/core_test/wallet.cpp | 79 ++----
  1224. rai/core_test/wallets.cpp | 2 +-
  1225. rai/core_test/work_pool.cpp | 19 +-
  1226. rai/ledger.cpp | 99 ++-----
  1227. rai/ledger.hpp | 35 +--
  1228. rai/lib/blocks.cpp | 51 ++--
  1229. rai/lib/numbers.cpp | 115 +++-----
  1230. rai/lib/numbers.hpp | 4 -
  1231. rai/lib/work.cpp | 4 +-
  1232. rai/node/bootstrap.cpp | 668 ++++++++++++++++++----------------------------
  1233. rai/node/bootstrap.hpp | 91 +++----
  1234. rai/node/common.cpp | 438 ++++++++++++++++++------------
  1235. rai/node/common.hpp | 114 ++++++--
  1236. rai/node/node.cpp | 1098 +++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
  1237. rai/node/node.hpp | 130 +++++----
  1238. rai/node/rpc.cpp | 258 +++++++++++-------
  1239. rai/node/rpc.hpp | 4 +-
  1240. rai/node/stats.cpp | 441 ++++++++++++++++++++++++++++++
  1241. rai/node/stats.hpp | 414 ++++++++++++++++++++++++++++
  1242. rai/node/utility.cpp | 2 +-
  1243. rai/node/wallet.cpp | 255 ++++--------------
  1244. rai/node/wallet.hpp | 7 +-
  1245. rai/qt/qt.cpp | 158 ++++++++++-
  1246. rai/qt/qt.hpp | 16 ++
  1247. rai/qt_test/qt.cpp | 2 +-
  1248. rai/rai_node/entry.cpp | 6 +-
  1249. rai/slow_test/node.cpp | 40 +--
  1250. util/gpg_keys/argakiig.asc | 31 +++
  1251. 49 files changed, 3909 insertions(+), 2392 deletions(-)
  1252. create mode 100644 rai/node/stats.cpp
  1253. create mode 100644 rai/node/stats.hpp
  1254. create mode 100644 util/gpg_keys/argakiig.asc
  1255.  
  1256. ==================================================================================================
  1257. nano/raiblocks wallet node at office
  1258.  
  1259. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git fetch origin --prune
  1260. From https://github.com/nanocurrency/raiblocks
  1261. x [deleted] (none) -> origin/V9.0
  1262. x [deleted] (none) -> origin/block_queue
  1263. x [deleted] (none) -> origin/bootstrap_thread
  1264. x [deleted] (none) -> origin/bootstrap_thread2
  1265. x [deleted] (none) -> origin/forward_bootstrap
  1266. x [deleted] (none) -> origin/interface
  1267. x [deleted] (none) -> origin/interface2
  1268. x [deleted] (none) -> origin/origin/utx
  1269. x [deleted] (none) -> origin/pull_once_per_ip
  1270. x [deleted] (none) -> origin/pulls/147
  1271. x [deleted] (none) -> origin/pulls/266
  1272. x [deleted] (none) -> origin/timed_uncheck_flush
  1273. x [deleted] (none) -> origin/ublocks
  1274. remote: Counting objects: 2347, done.
  1275. remote: Compressing objects: 100% (22/22), done.
  1276. remote: Total 2347 (delta 1189), reused 1183 (delta 1180), pack-reused 1145
  1277. Receiving objects: 100% (2347/2347), 1.25 MiB | 1.59 MiB/s, done.
  1278. Resolving deltas: 100% (1847/1847), completed with 105 local objects.
  1279. 9fb407c..0c683c1 master -> origin/master
  1280. * [new branch] database_abstraction -> origin/database_abstraction
  1281. * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
  1282. * [new branch] release_v11 -> origin/release_v11
  1283. * [new branch] releases/v12 -> origin/releases/v12
  1284. * [new branch] releases/v13 -> origin/releases/v13
  1285. * [new branch] releases/v14 -> origin/releases/v14
  1286. * [new branch] rocksdb -> origin/rocksdb
  1287. * [new branch] single_fanout_set -> origin/single_fanout_set
  1288. * [new branch] wallet_separation -> origin/wallet_separation
  1289. * [new tag] V11.2 -> V11.2
  1290. * [new tag] V13.0 -> V13.0
  1291. * [new tag] V14.2 -> V14.2
  1292. * [new tag] V11.0 -> V11.0
  1293. * [new tag] V11.1 -> V11.1
  1294. * [new tag] V12.0 -> V12.0
  1295. * [new tag] V12.1 -> V12.1
  1296. * [new tag] V14.0 -> V14.0
  1297. * [new tag] V14.1 -> V14.1
  1298. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git merge --ff-only origin/master
  1299. Updating 9fb407c..0c683c1
  1300. error: Your local changes to the following files would be overwritten by merge:
  1301. CMakeLists.txt
  1302. FindBoost.cmake
  1303. README.md
  1304. ci/bootstrap_boost.sh
  1305. ci/build-docker-image.sh
  1306. ci/deploy-docker.sh
  1307. ci/test.sh
  1308. docker/node/Dockerfile
  1309. docker/node/build.sh
  1310. docker/node/entry.sh
  1311. doxygen.config
  1312. rai/blockstore.cpp
  1313. rai/blockstore.hpp
  1314. rai/common.cpp
  1315. rai/common.hpp
  1316. rai/core_test/block.cpp
  1317. rai/core_test/block_store.cpp
  1318. rai/core_test/conflicts.cpp
  1319. rai/core_test/gap_cache.cpp
  1320. rai/core_test/interface.cpp
  1321. rai/core_test/ledger.cpp
  1322. rai/core_test/message.cpp
  1323. rai/core_test/message_parser.cpp
  1324. rai/core_test/network.cpp
  1325. rai/core_test/node.cpp
  1326. rai/core_test/peer_container.cpp
  1327. rai/core_test/processor_service.cpp
  1328. rai/core_test/rpc.cpp
  1329. rai/core_test/uint256_union.cpp
  1330. rai/core_test/wallet.cpp
  1331. rai/core_test/wallets.cpp
  1332. rai/core_test/work_pool.cpp
  1333. rai/ledger.cpp
  1334. rai/ledger.hpp
  1335. rai/lib/blocks.cpp
  1336. rai/lib/blocks.hpp
  1337. rai/lib/interface.cpp
  1338. rai/lib/interface.h
  1339. rai/lib/numbers.cpp
  1340. rai/lib/numbers.hpp
  1341. rai/lib/work.cpp
  1342. rai/node/bootstrap.cpp
  1343. rai/node/bootstrap.hpp
  1344. rai/node/common.cpp
  1345. rai/node/common.hpp
  1346. rai/node/node.cpp
  1347. rai/node/node.hpp
  1348. rai/node/rpc.cpp
  1349. rai/node/rpc.hpp
  1350. rai/node/testing.cpp
  1351. rai/node/utility.cpp
  1352. rai/node/utility.hpp
  1353. rai/node/wallet.cpp
  1354. rai/node/wallet.hpp
  1355. rai/qt/qt.cpp
  1356. rai/qt/qt.hpp
  1357. rai/qt_test/qt.cpp
  1358. rai/rai_node/entry.cpp
  1359. rai/slow_test/node.cpp
  1360. rep_weights.bin
  1361. Please, commit your changes or stash them before you can merge.
  1362. error: The following untracked working tree files would be overwritten by merge:
  1363. appveyor.yml
  1364. docker/node/config/beta.json
  1365. docker/node/config/live.json
  1366. docker/node/config/test.json
  1367. images/logo.svg
  1368. rai/node/stats.cpp
  1369. rai/node/stats.hpp
  1370. util/gpg_keys/argakiig.asc
  1371. Please move or remove them before you can merge.
  1372. Aborting
  1373.  
  1374. https://stackoverflow.com/questions/673407/how-do-i-clear-my-local-working-directory-in-git
  1375. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git reset --hard
  1376. HEAD is now at 9fb407c Fix docker boost url
  1377.  
  1378. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git clean -f
  1379. Removing appveyor.yml
  1380. Removing images/logo.svg
  1381. Removing rai/node/stats.cpp
  1382. Removing rai/node/stats.hpp
  1383.  
  1384. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git merge --ff-only origin/master
  1385. Updating 9fb407c..0c683c1
  1386. error: The following untracked working tree files would be overwritten by merge:
  1387. docker/node/config/beta.json
  1388. docker/node/config/live.json
  1389. docker/node/config/test.json
  1390. util/gpg_keys/argakiig.asc
  1391. Please move or remove them before you can merge.
  1392. Aborting
  1393.  
  1394. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git clean -d -x -f
  1395. Removing docker/node/config/
  1396. Removing util/
  1397.  
  1398. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git merge --ff-only origin/master
  1399. Updating 9fb407c..0c683c1
  1400. Fast-forward
  1401. .gitignore | 1 +
  1402. .travis.yml | 14 -
  1403. CMakeLists.txt | 72 +--
  1404. FindBoost.cmake | 117 +++--
  1405. FindCryptoPP.cmake | 108 ----
  1406. FindLevelDB.cmake | 18 -
  1407. README.md | 64 ++-
  1408. appveyor.yml | 44 ++
  1409. bootstrap.py | 21 -
  1410. ci/bootstrap_boost.sh | 30 +-
  1411. ci/build-docker-image.sh | 15 +-
  1412. ci/deploy-docker.sh | 38 +-
  1413. ci/test.sh | 2 +-
  1414. docker/node/Dockerfile | 26 +-
  1415. docker/node/build.sh | 38 +-
  1416. docker/node/config/beta.json | 60 +++
  1417. docker/node/{config.json => config/live.json} | 0
  1418. docker/node/config/test.json | 67 +++
  1419. docker/node/entry.sh | 65 ++-
  1420. doxygen.config | 2 +-
  1421. images/logo.svg | 1 +
  1422. rai/blockstore.cpp | 163 +++---
  1423. rai/blockstore.hpp | 104 +++-
  1424. rai/common.cpp | 193 +++++--
  1425. rai/common.hpp | 36 +-
  1426. rai/core_test/block.cpp | 99 +++-
  1427. rai/core_test/block_store.cpp | 110 ++--
  1428. rai/core_test/conflicts.cpp | 37 +-
  1429. rai/core_test/gap_cache.cpp | 9 +-
  1430. rai/core_test/interface.cpp | 16 +
  1431. rai/core_test/ledger.cpp | 966 +++++++++++++++++++++++++++++++----
  1432. rai/core_test/message.cpp | 61 ++-
  1433. rai/core_test/message_parser.cpp | 89 ++--
  1434. rai/core_test/network.cpp | 89 +++-
  1435. rai/core_test/node.cpp | 532 ++++++++++++++------
  1436. rai/core_test/peer_container.cpp | 44 +-
  1437. rai/core_test/processor_service.cpp | 6 +-
  1438. rai/core_test/rpc.cpp | 669 ++++++++++++++++++++++---
  1439. rai/core_test/uint256_union.cpp | 38 +-
  1440. rai/core_test/wallet.cpp | 68 +--
  1441. rai/core_test/wallets.cpp | 2 +-
  1442. rai/core_test/work_pool.cpp | 19 +-
  1443. rai/ledger.cpp | 408 +++++++++++----
  1444. rai/ledger.hpp | 15 +-
  1445. rai/lib/blocks.cpp | 410 ++++++++++++++-
  1446. rai/lib/blocks.hpp | 72 ++-
  1447. rai/lib/interface.cpp | 13 +
  1448. rai/lib/interface.h | 6 +
  1449. rai/lib/numbers.cpp | 120 ++---
  1450. rai/lib/numbers.hpp | 4 -
  1451. rai/lib/work.cpp | 6 +-
  1452. rai/node/bootstrap.cpp | 911 +++++++++++++++------------------
  1453. rai/node/bootstrap.hpp | 110 ++--
  1454. rai/node/common.cpp | 481 +++++++++++-------
  1455. rai/node/common.hpp | 126 ++++-
  1456. rai/node/node.cpp | 1767 +++++++++++++++++++++++++++++++++++++++++++++++------------------
  1457. rai/node/node.hpp | 212 +++++---
  1458. rai/node/rpc.cpp | 947 ++++++++++++++++++++++++-----------
  1459. rai/node/rpc.hpp | 10 +-
  1460. rai/node/stats.cpp | 441 ++++++++++++++++
  1461. rai/node/stats.hpp | 414 +++++++++++++++
  1462. rai/node/testing.cpp | 70 +--
  1463. rai/node/utility.cpp | 28 +-
  1464. rai/node/utility.hpp | 5 +-
  1465. rai/node/wallet.cpp | 315 +++++-------
  1466. rai/node/wallet.hpp | 10 +-
  1467. rai/qt/qt.cpp | 195 +++++++-
  1468. rai/qt/qt.hpp | 16 +
  1469. rai/qt_test/qt.cpp | 2 +-
  1470. rai/rai_node/entry.cpp | 165 +-----
  1471. rai/slow_test/node.cpp | 39 +-
  1472. rep_weights.bin | Bin 3280 -> 4240 bytes
  1473. util/gpg_keys/argakiig.asc | 31 ++
  1474. 73 files changed, 8199 insertions(+), 3303 deletions(-)
  1475. delete mode 100644 FindCryptoPP.cmake
  1476. delete mode 100644 FindLevelDB.cmake
  1477. create mode 100644 appveyor.yml
  1478. delete mode 100644 bootstrap.py
  1479. create mode 100644 docker/node/config/beta.json
  1480. rename docker/node/{config.json => config/live.json} (100%)
  1481. create mode 100644 docker/node/config/test.json
  1482. create mode 100644 images/logo.svg
  1483. create mode 100644 rai/node/stats.cpp
  1484. create mode 100644 rai/node/stats.hpp
  1485. create mode 100644 util/gpg_keys/argakiig.asc
  1486.  
  1487. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ cmake -DBOOST_ROOT=/usr/local -DQt5_DIR=/usr/local/lib/cmake/Qt5 -DRAIBLOCKS_GUI=ON
  1488. wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ make rai_node
  1489. wilderman@wilderman-Precision-T1650:~/bin$ ./rai_node --diagnostics
  1490. Testing hash function
  1491. Testing key derivation function
  1492. Dumping OpenCL information
  1493. OpenCL found 0 platforms and 0 devices
  1494.  
  1495. $ ./rai_node --debug_block_count
  1496. Block count: 7319081
  1497.  
  1498. wilderman@wilderman-Precision-T1650:~/bin$ ./rai_node --daemon --debug_block_count
  1499.  
  1500. wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "block_count" }' '[::1]:7076'
  1501. {
  1502. "count": "7319081",
  1503. "unchecked": "38621"
  1504. }
  1505.  
  1506.  
  1507.  
  1508. ======================================================================================================
  1509. =============================================================================
  1510. 2do intento:
  1511. $ python3 getOHLC_v02.py --base=btc --quote=usd --sync
  1512. (2880, datetime.datetime(2018, 6, 4, 0, 0))
  1513. 52
  1514. https://min-api.cryptocompare.com/data/histoday?e=CCCAGG&fsym=BTC&tsym=USD&limit=53
  1515. [['20180603', 7643.26, 7774.96, 7606.76, 7719.75], ['20180604', 7719.73, 7760.73, 7469.21, 7503.2], ['20180605', 7503.32, 7672.7, 7394.97, 7629.4], ['20180606', 7629.4, 7701.35, 7504.98, 7661.79], ['20180607', 7661.79, 7755.92, 7651.13, 7700.11], ['20180608', 7700.4, 7709.61, 7559.5, 7627.52], ['20180609', 7627.56, 7691.74, 7495.72, 7513.69], ['20180610', 7513.76, 7514.04, 6661.98, 6773.72], ['20180611', 6773.72, 6913.85, 6652.89, 6887.37], ['20180612', 6887.43, 6888.33, 6462.61, 6556.94], ['20180613', 6556.94, 6623, 6140.63, 6310.43], ['20180614', 6310.43, 6719.44, 6286.23, 6643.26], ['20180615', 6643.63, 6667.23, 6380.69, 6396.71], ['20180616', 6396.71, 6569.15, 6345.99, 6503.1], ['20180617', 6503.1, 6585.77, 6446.38, 6457.78], ['20180618', 6457.78, 6802.03, 6401.41, 6714.82], ['20180619', 6714.56, 6839.6, 6672.2, 6741.28], ['20180620', 6741.28, 6817.9, 6569.96, 6761.27], ['20180621', 6761.27, 6790.08, 6687.66, 6720.64], ['20180622', 6720.64, 6731.51, 5941.32, 6051.47], ['20180623', 6051.47, 6257.88, 6033.2, 6166.54], ['20180624', 6166.36, 6254.02, 5782.13, 6157.78], ['20180625', 6157.78, 6344.45, 6095.25, 6260.35], ['20180626', 6260.4, 6286.36, 6067.49, 6088.39], ['20180627', 6092.26, 6192.11, 6021.69, 6141.57], ['20180628', 6141.57, 6172.23, 5844.26, 5871.28], ['20180629', 5870.81, 6286.67, 5813.02, 6203.8], ['20180630', 6203.81, 6503.33, 6194.51, 6385.38], ['20180701', 6385.43, 6429.5, 6262.72, 6339.04], ['20180702', 6342.69, 6673.71, 5537.86, 6615.66], ['20180703', 6616.6, 6670.3, 6473.48, 6509.58], ['20180704', 6508.43, 6777.97, 6411.13, 6590.06], ['20180705', 6589.77, 6691.32, 6448.23, 6534.81], ['20180706', 6534.81, 6633.44, 6458.14, 6602.02], ['20180707', 6602.03, 6814.42, 6518.23, 6758.08], ['20180708', 6758.08, 6782.85, 6684.15, 6707.38], ['20180709', 6707.46, 6803.1, 6625.58, 6668.84], ['20180710', 6668.84, 6683.61, 6277.23, 6306.85], ['20180711', 6306.87, 6405.59, 6293.68, 6394.36], ['20180712', 6394.36, 6394.93, 6084, 6253.6], ['20180713', 6253.66, 6349.21, 6131.54, 6229.83], ['20180714', 6229.61, 6332.46, 6190.18, 6268.75], ['20180715', 6268.32, 6401.5, 6245.75, 6364.26], ['20180716', 6364.26, 6761.84, 6349.83, 6740.55], ['20180717', 6740.54, 7476.24, 6677.56, 7326.7], ['20180718', 7326.76, 7590.65, 7253.71, 7383.39], ['20180719', 7383.39, 7563.7, 7289.9, 7477.5], ['20180720', 7477.1, 7676.55, 7279.34, 7333.93], ['20180721', 7333.93, 7453.07, 7220.37, 7405.4], ['20180722', 7405.4, 7569.28, 7345.25, 7398.64], ['20180723', 7398.64, 7798.59, 7376.66, 7718], ['20180724', 7718, 8485.71, 7692.16, 8395.82], ['20180725', 8395.81, 8481.11, 8061.07, 8170.23], ['20180726', 8170.37, 8248.75, 8168.9, 8200.44]]
  1516. 2018-06-03 00:00:00 1
  1517. > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(515)upgDBDay()
  1518. -> print('diff_.days == 1')
  1519.  
  1520.  
  1521. error en linea 703
  1522. (Pdb) n
  1523. > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(703)upgDBDay()
  1524. -> uapr_= upgtAPR(cursor,table+"_tr",h_,l_,pc,patrt,id_,'tr') #=>(tr,atrt)
  1525. (Pdb) p patrt
  1526. 331.265
  1527. (Pdb) n
  1528. apsw.SQLError: SQLError: no such table: btcusd_tr_tr
  1529. > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(703)upgDBDay()
  1530. -> uapr_= upgtAPR(cursor,table+"_tr",h_,l_,pc,patrt,id_,'tr') #=>(tr,atrt)
  1531.  
  1532.  
  1533. -> for res_ in cur_.execute(sql_):
  1534. (Pdb) l
  1535. 377 print('papr=',papr,'pr=',pr,'apr=',apr)
  1536. 378 else:
  1537. 379 print(table)
  1538. 380 rfin = id_ - 20
  1539. 381 sql_ = "select sum(tr) from "+table+"_tr where id < "+str(id_)+" and id > "+str(rfin)
  1540. 382 -> for res_ in cur_.execute(sql_):
  1541. 383 acumTR += float(res_[0])
  1542. 384 atrt=(acumTR+tr)/20 #ATRT-SMA BIEN CALCULADO!!
  1543. 385 #atrt=((papr*19)+tr)/20 #ATRT-SMA ESTA MAL CALCULADO!!
  1544. 386 #atrt=((patrt*19)+tr)/20 #ATR-SMA
  1545. 387 print('patrt=',papr,'tr=',tr,'atrt=',atrt)
  1546. (Pdb) b 384
  1547. Breakpoint 2 at /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py:384
  1548. (Pdb) c
  1549. Traceback (most recent call last):
  1550. File "getOHLC_v02.py", line 812, in <module>
  1551. main()
  1552. File "getOHLC_v02.py", line 801, in main
  1553. upgDBDay(conn, base+quote, res__, diff, lstd[1])
  1554. File "getOHLC_v02.py", line 704, in upgDBDay
  1555. uapr_= upgtAPR(cursor,table,h_,l_,pc,patrt,id_,'tr') #=>(tr,atrt)
  1556. File "getOHLC_v02.py", line 383, in upgtAPR
  1557. acumTR += float(res_[0])
  1558. UnboundLocalError: local variable 'acumTR' referenced before assignment
  1559.  
  1560. (Pdb) n
  1561. > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(388)upgtAPR()
  1562. -> print('patrt=',papr,'tr=',tr,'atrt=',atrt)
  1563. (Pdb) n
  1564. patrt= 331.265 tr= 291.5199999999995 atrt= 331.265
  1565. > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(389)upgtAPR()
  1566. -> pr = tr
  1567.  
  1568. sqlite> select sum(tr) from btcusd_tr where id < 2880 and id > 2860;
  1569. 6333.78
  1570. sqlite> select sum(tr) from btcusd_tr where id < 2881 and id > 2860;
  1571. 6625.3
  1572.  
  1573. ::DATO API::
  1574. ['20180605', 7503.32, 7672.7, 7394.97, 7629.4]
  1575.  
  1576. p row
  1577. ['20180605', 7503.32, 7672.7, 7394.97, 7629.4]
  1578.  
  1579. (Pdb) p rowid
  1580. (2881,)
  1581. (Pdb) p table,pcid
  1582. ('btcusd', 2881)
  1583. (Pdb) p pc
  1584. 7503.2
  1585. (Pdb) p pr
  1586. 1.0227266668443924
  1587.  
  1588. ::btcusd_pr::
  1589. id, pclose, papr, pr, apr, patr atr, patre, atre
  1590. 2880|7719.75|1.02171774|1.0054387|1.02090379|1.01877242|1.01795079|1.01863829|1.01675917
  1591.  
  1592. (Pdb) p papr
  1593. 1.02090379
  1594.  
  1595. (Pdb) p apr
  1596. 1.0209949338422195
  1597.  
  1598. (Pdb) p pr
  1599. 1.0227266668443924
  1600.  
  1601. #calcular ATR(SMA): capturar los ultimos 20 PRs y acumularlos/sumarlos
  1602. (Pdb) p atr
  1603. 1.0189545078422195
  1604. (Pdb) p a
  1605. 0.09523809523809523
  1606.  
  1607. -> atre = calcATRe(pr,a,atr)
  1608. (Pdb) p atre
  1609. 1.0193137610805216
Add Comment
Please, Sign In to add comment