Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==================================================================================================================================
- ::Compilando NANO/raiblocks::
- https://github.com/nanocurrency/raiblocks/wiki/Build-Instructions
- https://github.com/nanocurrency/raiblocks/wiki/Build-rai_node-samples
- https://github.com/nanocurrency/raiblocks/wiki/Guide:-Quickstart-to-running-a-node-(Ubuntu-16.04)
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ rsync -avP ../../git/raiblocks/ .
- :~/git.build/raiblocks$ git submodule update --init --recursive
- :~/git.build/raiblocks$ cmake -DBOOST_ROOT=/usr/local -DQt5_DIR=/usr/local/lib/cmake/Qt5 -DRAIBLOCKS_GUI=ON
- :~/git.build/raiblocks$ make rai_node
- :~/git.build/raiblocks$ make nano_wallet
- :~/git.build/raiblocks$ ldd nano_wallet
- linux-vdso.so.1 => (0x00007ffd88f7c000)
- libQt5Widgets.so.5 => /usr/local/lib/libQt5Widgets.so.5 (0x00007f0c0474c000)
- libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0c0452f000)
- libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0c0432b000)
- libQt5Gui.so.5 => /usr/local/lib/libQt5Gui.so.5 (0x00007f0c03d50000)
- libQt5Core.so.5 => /usr/local/lib/libQt5Core.so.5 (0x00007f0c037e7000)
- libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0c034de000)
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0c03114000)
- /lib64/ld-linux-x86-64.so.2 (0x00007f0c04db4000)
- libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f0c02d92000)
- libGL.so.1 => /opt/amdgpu/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f0c02b1f000)
- libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f0c028fa000)
- libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f0c026e0000)
- libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0c024ca000)
- libicui18n.so.55 => /usr/lib/x86_64-linux-gnu/libicui18n.so.55 (0x00007f0c02068000)
- libicuuc.so.55 => /usr/lib/x86_64-linux-gnu/libicuuc.so.55 (0x00007f0c01cd4000)
- libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f0c01aab000)
- libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f0c018a8000)
- libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f0c016a5000)
- libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f0c0149e000)
- libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f0c0129b000)
- libglapi.so.0 => /opt/amdgpu/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f0c0106b000)
- libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f0c00e59000)
- libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f0c00c56000)
- libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f0c00a50000)
- libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f0c0084e000)
- libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f0c00514000)
- libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f0c002fb000)
- libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f0c000f6000)
- libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f0bffed4000)
- libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f0bffcce000)
- libdrm.so.2 => /opt/amdgpu/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f0bffaba000)
- libicudata.so.55 => /usr/lib/x86_64-linux-gnu/libicudata.so.55 (0x00007f0bfe003000)
- libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f0bfdde1000)
- libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f0bfdbdd000)
- libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f0bfd9d7000)
- libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f0bfd767000)
- :~/bin$ ./rai_node --diagnostics
- Testing hash function
- Testing key derivation function
- Dumping OpenCL information
- OpenCL found 0 platforms and 0 devices
- ~/bin$ ./rai_node --debug_block_count
- Block count: 1
- :~/bin$ cat ~/RaiBlocks/config.json
- {
- "version": "2",
- "rpc_enable": "false",
- "rpc": {
- "address": "::1",
- "port": "7076",
- "enable_control": "false",
- "frontier_request_limit": "16384",
- "chain_request_limit": "16384"
- },
- "node": {
- "version": "9",
- "peering_port": "7075",
- "bootstrap_fraction_numerator": "1",
- "receive_minimum": "1000000000000000000000000",
- "logging": {
- "version": "3",
- "ledger": "false",
- "ledger_duplicate": "false",
- "vote": "false",
- "network": "true",
- "network_message": "false",
- "network_publish": "false",
- "network_packet": "false",
- "network_keepalive": "false",
- "node_lifetime_tracing": "false",
- "insufficient_work": "true",
- "log_rpc": "true",
- "bulk_pull": "false",
- "work_generation_time": "true",
- "log_to_cerr": "false",
- "max_size": "16777216",
- "rotation_size": "4194304",
- "flush": "true"
- },
- "work_peers": "",
- "preconfigured_peers": [
- "rai.raiblocks.net"
- ],
- "preconfigured_representatives": [
- "xrb_3arg3asgtigae3xckabaaewkx3bzsh7nwz7jkmjos79ihyaxwphhm6qgjps4",
- "xrb_1stofnrxuz3cai7ze75o174bpm7scwj9jn3nxsn8ntzg784jf1gzn1jjdkou",
- "xrb_1q3hqecaw15cjt7thbtxu3pbzr1eihtzzpzxguoc37bj1wc5ffoh7w74gi6p",
- "xrb_3dmtrrws3pocycmbqwawk6xs7446qxa36fcncush4s1pejk16ksbmakis78m",
- "xrb_3hd4ezdgsp15iemx7h81in7xz5tpxi43b6b41zn3qmwiuypankocw3awes5k",
- "xrb_1awsn43we17c1oshdru4azeqjz9wii41dy8npubm4rg11so7dx3jtqgoeahy",
- "xrb_1anrzcuwe64rwxzcco8dkhpyxpi8kd7zsjc1oeimpc3ppca4mrjtwnqposrs",
- "xrb_1hza3f7wiiqa7ig3jczyxj5yo86yegcmqk3criaz838j91sxcckpfhbhhra1"
- ],
- "inactive_supply": "0",
- "password_fanout": "1024",
- "io_threads": "4",
- "work_threads": "4",
- "enable_voting": "true",
- "bootstrap_connections": "4",
- "bootstrap_connections_max": "64",
- "callback_address": "",
- "callback_port": "0",
- "callback_target": "",
- "lmdb_max_dbs": "128"
- },
- "opencl_enable": "false",
- "opencl": {
- "platform": "0",
- "device": "0",
- "threads": "1048576"
- }
- }
- To enable RPC for node edit config.json after first launch
- :~/bin$ sed -i 's/"rpc_enable": "false"/"rpc_enable": "true"/g' ~/RaiBlocks/config.json
- :~/bin$ sed -i 's/"enable_control": "false"/"enable_control": "true"/g' ~/RaiBlocks/config.json
- ::Consultar el nodo con RPC::
- https://github.com/nanocurrency/raiblocks/wiki/RPC-protocol
- wilderman@wilderman-Precision-T1650:~/bin$ unset http_proxy
- wilderman@wilderman-Precision-T1650:~/bin$ unset https_proxy
- wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "block_count" }' '[::1]:7076'
- {
- "count": "91",
- "unchecked": "1738121"
- }
- $ curl -g -d '{ "action": "stop" }' '[::1]:7076'
- {
- "success": ""
- }
- $ curl -g -d '{ "action": "stop" }' '[::1]:7076'
- curl: (7) Failed to connect to ::1 port 7076: Connection refused
- CLI::Importar wallet
- https://github.com/nanocurrency/raiblocks/wiki/Command-line-interface
- --wallet_import --file=<filepath> --wallet=<wallet> --password=<password>
- $ ./rai_node --wallet_create
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- Importar wallet backup de casa:
- :~/bin$ ./rai_node --wallet_import --file=/home/wilderman/Dropbox/Documents/cryptoc/backup/9694A4XXXXXXXXXXXXXXXXXXXXXXXXXXXX.json --wallet=B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --password='xxxxxxxxxxxxxxxxxxxx'
- Listar Wallet:
- $ ./rai_node --wallet_list
- Wallet ID: B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid
- PublicK/PrivK
- XRB/NANO Extraer Wallet Info {public/private}
- wilderman@m0n0lithic-desktop:~/bin/rai-9.0.0-Linux$ ./rai_wallet --wallet=9694A4B51AXXXXXXXXX --password='&U7xxxxxxxxxxxxxxxx' --wallet_decrypt_unsafe
- Seed: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- Pub: xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid Prv: ABXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- ::RPC::
- :~/bin$ curl -g -d '{ "action": "block_count" }' '[::1]:7076'
- {
- "count": "91",
- "unchecked": "1911316"
- }
- $ curl -g -d '{ "action": "account_get", "key": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }' '[::1]:7076'
- {
- "account": "xrb_3f1cfh6wae1fgeqofkepyftdr9ph9rosidmcqeedwa4d56dks98bes846tya"
- }
- $ curl -g -d '{ "action": "account_balance", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid" }' '[::1]:7076'
- {
- "balance": "0",
- "pending": "0"
- }
- $ curl -g -d '{ "action": "account_list", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }' '[::1]:7076'
- {
- "accounts": [
- "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"
- ]
- }
- ::account info::
- $ curl -g -d '{ "action": "account_info", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid" }' '[::1]:7076'
- {
- "frontier": "212C0A69E4ADE2B3B4EC9A4A4C6263FB4272DDFC85BDA7A5971A82FFF568980C",
- "open_block": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C",
- "representative_block": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C",
- "balance": "7825348816000000000003000000000",
- "modified_timestamp": "1520978940",
- "block_count": "4"
- }
- ::Wallet locked check::
- $ curl -g -d '{ "action": "wallet_locked", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }' '[::1]:7076'
- {
- "locked": "0"
- }
- ::account key => public key::
- :~/bin$ curl -g -d '{ "action": "account_key", "account": "xrb_3f1cfh6wae1fgeqofkepyftdr9ph9rosidmcqeedwa4d56dks98bes846tya" }' '[::1]:7076'
- {
- "key": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- }
- $ curl -g -d '{ "action": "account_key", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid" }' '[::1]:7076'
- {
- "key": "ED4EDFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- }
- $ curl -g -d '{ "action": "password_change", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "password": "7357598.,." }' '[::1]:7076'
- {
- "changed": "1"
- }
- :~/bin$ curl -g -d '{ "action": "password_enter", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "password": "xxxxxxxxxxx" }' '[::1]:7076'
- {
- "valid": "1"
- }
- :~/bin$ curl -g -d '{ "action": "password_valid", "wallet": "B40A6BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }' '[::1]:7076'
- {
- "valid": "1"
- }
- :~/bin/rai-10.0.1-Linux/bin$ ./rai_node --daemon --debug_block_count
- Error deserializing config
- https://github.com/nanocurrency/raiblocks/issues/136
- fardeyo, close wallet and rename config.json in %LOCALAPPDATA%\RaiBlocks to config_old.json
- ?=??????????????===============================================
- https://www.nanode.co/docs#representative
- https://forum.raiblocks.net/t/help-transfer/5226/5
- https://nanowat.ch
- https://nano-miner.com/
- Withdraw Pending XRB
- Transfered: 34.81600 uXRB
- Block: 83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD
- https://www.reddit.com/r/RaiBlocks/comments/7rqsok/received_pending_deposit_to_balance_make_sure/
- ===================================================================
- ::activate Block with balance pendings::
- TX: https://raiblocks.net/block/index.php?h=94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C
- Block 94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C
- :~/bin$ curl -g -d '{ "action": "block", "hash": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C" }' '[::1]:7076'
- {
- "contents": "{\n \"type\": \"send\",\n \"previous\": \"ECF44EF07DB86CED3E23FEB09B77AE635881386BAB34C2610138B0C5842AD541\",\n \"destination\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"balance\": \"03BBEF45723DC791FD13393A50A97000\",\n \"work\": \"331b0d00df1bb44c\",\n \"signature\": \"88A881D94BD00D801A58B8F2100E02F05164C2D3BF15F1B5D8D5C2E46C14B98B6A069FAB6E481335D095C397C7F0C3D9B5CBB15B6A88E28131E6A50407F7B10B\"\n}\n"
- }
- wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "block_account", "hash": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C" }' '[::1]:7076'
- {
- "account": "xrb_1niabkx3gbxit5j5yyqcpas71dkffggbr6zpd3heui8rpoocm5xqbdwq44oh"
- }
- :~/bin$ curl -g -d '{ "action": "blocks_info", "hashes": ["94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C"], "pending": "true", "source": "true" }' '[::1]:7076'
- {
- "blocks": {
- "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C": {
- "block_account": "xrb_1niabkx3gbxit5j5yyqcpas71dkffggbr6zpd3heui8rpoocm5xqbdwq44oh",
- "amount": "7835313000000000000000000000000",
- "contents": "{\n \"type\": \"send\",\n \"previous\": \"ECF44EF07DB86CED3E23FEB09B77AE635881386BAB34C2610138B0C5842AD541\",\n \"destination\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"balance\": \"03BBEF45723DC791FD13393A50A97000\",\n \"work\": \"331b0d00df1bb44c\",\n \"signature\": \"88A881D94BD00D801A58B8F2100E02F05164C2D3BF15F1B5D8D5C2E46C14B98B6A069FAB6E481335D095C397C7F0C3D9B5CBB15B6A88E28131E6A50407F7B10B\"\n}\n",
- "pending": "1",
- "source_account": "0"
- }
- }
- }
- ============================================================================
- ::nano/raiblocks node version::
- :~/bin$ curl -g -d '{ "action": "version" }' '[::1]:7076'
- {
- "rpc_version": "1",
- "store_version": "10",
- "node_vendor": "RaiBlocks 10.0"
- }
- search pendings
- $ curl -g -d '{ "action": "search_pending", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9" }' '[::1]:7076'
- {
- "started": "true"
- }
- ============================================================================
- blocks "pending":
- $ curl -g -d '{ "action": "wallet_pending", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9", "count": "3" }' '[::1]:7076'
- {
- "blocks": {
- "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": [
- "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB",
- "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD",
- "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C"
- ]
- }
- }
- :~/bin$ curl -g -d '{ "action": "pending", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "count": "1", "source": "true" }' '[::1]:7076'
- {
- "blocks": {
- "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB": {
- "amount": "1000000000000000000000000",
- "source": "xrb_179nxsajbe6ofad48jma7qio3nbjidqh97jp9kc667jmw67ap98p3e96xwby"
- }
- }
- }
- $ curl -g -d '{ "action": "pending", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "count": "4", "source": "true" }' '[::1]:7076'
- {
- "blocks": {
- "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB": {
- "amount": "1000000000000000000000000",
- "source": "xrb_179nxsajbe6ofad48jma7qio3nbjidqh97jp9kc667jmw67ap98p3e96xwby"
- },
- "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD": {
- "amount": "34816000000000003000000000",
- "source": "xrb_3jybgajxebuj9kby3xusmn4sqiomzu15trmkwb1xyrynnc7axss3qp1yn679"
- },
- "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C": {
- "amount": "7835313000000000000000000000000",
- "source": "xrb_1niabkx3gbxit5j5yyqcpas71dkffggbr6zpd3heui8rpoocm5xqbdwq44oh"
- }
- }
- }
- ::"unchecked" blocks::
- :~/bin$ curl -g -d '{ "action": "unchecked", "count": "3" }' '[::1]:7076'
- {
- "blocks": {
- "674D62BDF8E51E0D6D093CBE4E62E4E9FC598E8AA868071CC9744F1C05939171": "{\n \"type\": \"change\",\n \"previous\": \"0089A74F0CAD536A84E56BEBE2C6A13BD8EBE077DA7C0B8B42C149B55A7370DC\",\n \"representative\": \"xrb_3t4y3w4jcjj8pg11gekfadgafjtcnq91zxbgwuh5wdq17uq6tgfrp7zybqf9\",\n \"work\": \"29b6a19047ee7905\",\n \"signature\": \"5BFD7125FE9BFE7FAB5CE7682DAB4651535BD382F89E081E8D6E997463C6F2707FEF633877EA24749D633660CCE61914BC649EA190766D7CB2396CCB22F88A0C\"\n}\n",
- "69D0EC6B4E86BED733273F2F9014BF51CF0DA29F5CBAEAD004D36334104E8EEF": "{\n \"type\": \"receive\",\n \"previous\": \"02D143AFF374802C53774CFD50C72670DED38DD2978C6DF2576862428B4254AA\",\n \"source\": \"CD1BC595C08212796C390A88A8BC7025AFFF53C8145E854091767FC7C8926501\",\n \"work\": \"0aee5e8398d7b5c2\",\n \"signature\": \"8A20D4990D9F5172289A261D93452460E2D740A864B85B0E36149F80AC9CCE7F6A9205E7B2483E5494C7E43E7B9D4A6C3036384E22292D3CDED0A6FDEF66410F\"\n}\n",
- "F6D91D4E46F5BE82BB87AE0249319AEEFC3294E1C01CF4F445C1B14CF9B31EF7": "{\n \"type\": \"receive\",\n \"previous\": \"02D5AD709DC78E75E77FE28B534AA2977E21E5EF4F094DB8CEFF54A505258DC4\",\n \"source\": \"9F8B3687BF3DED87C4AA052B1977CCB8007A319CC2320ACA10071BF99481F896\",\n \"work\": \"116daaa41a0c170f\",\n \"signature\": \"AA2D5E01D7C40042801EB34DE47E67011A18207411EF067B402125FBAFBA8A1914A270D44D7C5481FFF2B5A719158A9E710B1D3C5FF0F87D1A7D6E4A5914210B\"\n}\n"
- }
- }
- :~/bin$ curl -g -d '{ "action": "account_representative_set", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "representative": "xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg" }' '[::1]:7076'
- {
- "block": "0000000000000000000000000000000000000000000000000000000000000000"
- }
- wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "receive", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "block": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C" }' '[::1]:7076'
- {
- "block": "0000000000000000000000000000000000000000000000000000000000000000"
- }
- https://www.nanode.co/docs#rpc-guide-opening-an-account
- https://www.nanode.co/docs
- ::torr3ntz::
- https://arenabg.ch/torrents/type:music/
- 7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "work": "58a99418edaa4434", "source": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C", "representative": "xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg" }' '[::1]:7076'
- {
- "hash": "4C2720CF2D65FE1F7D02432C75A7D9B2968AF6DA729EF4EE47E1CEEF6249DA33",
- "block": "{\n \"type\": \"open\",\n \"source\": \"94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C\",\n \"representative\": \"xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg\",\n \"account\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"work\": \"58a99418edaa4434\",\n \"signature\": \"BF2DAD0838A2F2BE390D8DA7988E3FD70BD2B6BD2A10F554534CEAD6B75D8C23A77C9918220CDDE16935AC80E289D11AD96727C81601DC1A6D16D36C8581C106\"\n}\n"
- }
- $ curl -g -d '{ "action": "block_create", "type": "open", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "source": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C", "representative": "xrb_1nanode8ngaakzbck8smq6ru9bethqwyehomf79sae1k7xd47dkidjqzffeg" }' '[::1]:7076'
- :~/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'
- {
- "error": "Gap source block"
- }
- ==============================================================================================================================
- Offline signing (create block)
- 1. ::Blocks pending para cada TX pending:: (sirven de source)
- $ curl -g -d '{ "action": "accounts_pending", "accounts": ["xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"], "count": "1" }' '[::1]:7076'
- {
- "blocks": {
- "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": [
- "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB"
- ]
- }
- }
- $ curl -g -d '{ "action": "accounts_pending", "accounts": ["xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"], "count": "2" }' '[::1]:7076'
- {
- "blocks": {
- "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": [
- "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB",
- "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD"
- ]
- }
- }
- 2. ::Extraer llaves a account-0::
- curl -g -d '{ "action": "deterministic_key", "seed": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "index": "0" }' '[::1]:7076'
- {
- "private": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
- "public": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
- "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"
- }
- Offline signing (create block)
- 1. open block: (primera y unica vez)
- :~/bin$ curl -g -d '{ "action": "block_create", "type": "open", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "representative": "xrb_35jdmecuxmxbu13wjappphrsjqbuny9isjubniqegto5gf1p67i7tm78bfyd", "source": "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB" }' '[::1]:7076'
- {
- "hash": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C",
- "block": "{\n \"type\": \"open\",\n \"source\": \"3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB\",\n \"representative\": \"xrb_35jdmecuxmxbu13wjappphrsjqbuny9isjubniqegto5gf1p67i7tm78bfyd\",\n \"account\": \"xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid\",\n \"work\": \"ca4bcae644956776\",\n \"signature\": \"49D096D3B9CFC26049B595F5EBC69AD627C1FADA339EEFA258B989045E3E89BF8E4850541A0828628173D4081F7BC73FF26C9E5D19D1C7D186172E1EF2C4DF07\"\n}\n"
- }
- 2. receive block:
- :~/bin$ curl -g -d '{ "action": "block_create", "type": "receive", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "source": "3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB", "previous": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C" }' '[::1]:7076'
- {
- "hash": "6360636EF1DB978846F8C5C1B4E732127F53282E96EBC866FB6FCC8539E0D09B",
- "block": "{\n \"type\": \"receive\",\n \"previous\": \"97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C\",\n \"source\": \"3FFF5E3F9FE1CD5F5AA5B6BBB34B6C57EDFD87D38897594D353C2E70FA5126CB\",\n \"work\": \"2f660fa7621b8037\",\n \"signature\": \"EF50333D86E5011644925F4AC710433C5315ABFA714595952F926AD5DBB7CC14C5523310BABD6C7D85C0740F08CCB0BA13742FADE7E6F09506B918112CC13709\"\n}\n"
- }
- 3. process open block (send to the network):
- :~/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'
- {
- "hash": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C"
- }
- Bingo!!! habemus hash. Con ese hash de respuesta, finalmente la cuenta se activa y ha procesado el 1er Pending !!!!!
- https://nanowat.ch/account/xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid
- https://nanowat.ch/block/97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C
- :: restan dos pendings mas::
- $ curl -g -d '{ "action": "accounts_pending", "accounts": ["xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid"], "count": "2" }' '[::1]:7076'
- {
- "blocks": {
- "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": [
- "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD",
- "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C"
- ]
- }
- }
- ::offline receive block (2)::
- :~/bin$ curl -g -d '{ "action": "block_create", "type": "receive", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "source": "83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD", "previous": "97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C" }' '[::1]:7076'
- {
- "hash": "90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14",
- "block": "{\n \"type\": \"receive\",\n \"previous\": \"97F1651046A48BF3462427F2AD22E84761139725F827D7E01B93786C783F153C\",\n \"source\": \"83C27731DC2EA1F4A2AD470F4F3B1CA2804B1C8E52B7E44AFE24DA1F8A6846AD\",\n \"work\": \"9a2937b845389eb7\",\n \"signature\": \"D6FCA5A9883E0988285AEEDB7CFC754F763EC468453A0000C460ACCFFE260644AB65F0D340832342D786825CE461C402D996E9C2F3FDAB4BAFC8E0F04D2A070A\"\n}\n"
- }
- ::process offline receive block (next pending)
- :~/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'
- {
- "hash": "90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14"
- }
- ::offline receive block (3/last)::
- $ curl -g -d '{ "action": "block_create", "type": "receive", "key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid", "source": "94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C", "previous": "90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14" }' '[::1]:7076'
- {
- "hash": "0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2",
- "block": "{\n \"type\": \"receive\",\n \"previous\": \"90552B92B5828BF932008A8B17FDA8AF049D97153D52DAB67A1D3747246B4F14\",\n \"source\": \"94266A478FEEEB914AD2C785507581DD421D6F705582B1A83464F66A53323E6C\",\n \"work\": \"5fff5037435cbfa8\",\n \"signature\": \"153F774C1EE9D07CD09812905D74FCC30F42F9865EA88D42D86E34ABDCA178A4D0D9FA6C6A5BCE7D788F4241C2EDC303049954E0C2046006906B56490A359306\"\n}\n"
- }
- ::process offline receive block (last pending)
- :~/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'
- {
- "hash": "0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2"
- }
- =====================================================================================================================
- :~/bin$ curl -g -d '{ "action": "wallet_frontiers", "wallet": "B40A6BC9C4300D732F56C996F374BC1ECF3E2B982E6ABB18BE204B19172C9CC9" }' '[::1]:7076'
- {
- "frontiers": {
- "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid": "0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2"
- }
- }
- ==================================================================================================================
- ::Enviar (Send) Block::
- calcular balance en krai to raw:
- :~/bin$ curl -g -d '{ "action": "krai_to_raw", "amount": "7835348816" }' '[::1]:7076'
- {
- "amount": "7835348816000000000000000000000000000"
- }
- calcular monto a enviar en krai to raw:
- :~/bin$ curl -g -d '{ "action": "krai_to_raw", "amount": "10" }' '[::1]:7076'
- {
- "amount": "10000000000000000000000000000"
- }
- :~/bin$ curl -g -d '{ "action": "krai_from_raw", "amount": "10000000000000000000000000000" }' '[::1]:7076'
- {
- "amount": "10"
- }
- generando block para send en offline:
- :~/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'
- {
- "hash": "70360681FE9E05E9E88215DD9656879A9CD7CBFD2CF8E290A1685C557829D1BE",
- "block": "{\n \"type\": \"send\",\n \"previous\": \"0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2\",\n \"destination\": \"xrb_14oxmqyjg6854tyz1zo57e4zkgspssgggja7ptgajub9mr5jcsrz66pg7fpr\",\n \"balance\": \"05E50885A111B6C8F724753F70000000\",\n \"work\": \"2e1734d361aa5cce\",\n \"signature\": \"08BAAE5F7B85AF689C1151F8E9134D1F8D395B8C4245F1AFA586F552C22C04AC0E80B35BF720586847526E7F6741DB2457D8022F370CF7B42FF70D26706B3E0B\"\n}\n"
- }
- ::Error "Overspend" en el calculo del balance::
- ~/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'
- {
- "error": "Overspend"
- }
- ~/bin$ curl -g -d '{ "action": "mrai_to_raw", "amount": "10000" }' '[::1]:7076'
- {
- "amount": "10000000000000000000000000000000000"
- }
- ::generando block para send en offline::
- ~/bin$ curl -g -d '{ "action": "krai_to_raw", "amount": "10" }' '[::1]:7076'{
- "amount": "10000000000000000000000000000"
- }
- 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'
- {
- "hash": "212C0A69E4ADE2B3B4EC9A4A4C6263FB4272DDFC85BDA7A5971A82FFF568980C",
- "block": "{\n \"type\": \"send\",\n \"previous\": \"0D78D157534449631006EDE7B7B1B5EA57A911754DCC9710278563AF734498E2\",\n \"destination\": \"xrb_14oxmqyjg6854tyz1zo57e4zkgspssgggja7ptgajub9mr5jcsrz66pg7fpr\",\n \"balance\": \"00000062C510D3BA34183F6C94D05E00\",\n \"work\": \"cfeea93856009b40\",\n \"signature\": \"9B62CE597EB8FD4B0583F0D71F7D8C06FB122185191509A0283A43A4DDE751C3DEE835ED935C2C217DCD00B8E21C99D0102C5188B66AFFFAAFACA54D01BE5D06\"\n}\n"
- }
- 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'
- {
- "hash": "212C0A69E4ADE2B3B4EC9A4A4C6263FB4272DDFC85BDA7A5971A82FFF568980C"
- }
- ================================================
- error en nano_wallet al iniciar:
- Exception while running wallet: No such node (wallet)
- Es debido a que en el archivo de configuración no aparece la wallet asociada al nodo:
- En ~/RaiBlocks editar config.json y agregue las lineas:
- "version": "4",
- "wallet": "9694A4BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
- "account": "xrb_3ucguy8hbry6t7rdhfkbhztk1cdk3qm5smcwj3pm9ygi8ci63iunifgw8oid",
- ===================================================================================
- ::Unit Calculators::
- http://www.dermarki.de/cryptocurrency/raiblocks_unit_conversion.php
- https://nanoo.tools/unit-converter?unit=Mnano&amount=0.0001
- ======================================================================================================================
- ::cpuminer::
- https://rumorscity.com/2014/01/04/compile-and-install-cpuminer-on-linux-centos/
- https://github.com/pooler/cpuminer
- ::cpuminer-opt::
- https://bitcointalk.org/index.php?topic=1326803.0
- https://github.com/JayDDee/cpuminer-opt/releases
- http://cryptomining-blog.com/tag/cryptonight-cpu-miner/
- ::Sumo Easy Miner::
- https://bitcointalk.org/index.php?topic=2163270
- https://github.com/sumoprojects/SumoEasyMiner
- ::cpuminer-opt::
- wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ ./autogen.sh
- wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ CFLAGS="-O3 -march=native -Wall" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
- Additional optional compile flags, add the following to CFLAGS to activate:
- -DUSE_SPH_SHA
- wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ CFLAGS="-O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
- wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ time make 2>&1 | tee make.log
- routing para IP del pool easyhash.io:
- wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ sudo ip route add 188.166.122.231/32 via 172.25.19.11
- wilderman@wazowski:~/source/cpuminer-opt-3.8.4$ ./cpuminer -a cryptonight -o stratum+tcp://etn.easyhash.io:3631 -u etnjxRnUyZRGnxPpdpdA1FGqS2zpaSe849ujwvitV8ynQAgZ1Yv11QWP894Ehr2CnHhcPq5k3RmBwTANEYrKPoMp3xrUuMZrT9
- ********** cpuminer-opt 3.8.4 ***********
- A CPU miner with multi algo support and optimized for CPUs
- with AES_NI and AVX2 and SHA extensions.
- BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT
- CPU: Intel(R) Xeon(R) CPU L5420 @ 2.50GHz.
- SW built on Mar 22 2018 with GCC 4.9.2.
- CPU features: SSE2.
- SW features: SSE2.
- Algo features: SSE2 AES.
- Start mining with SSE2.
- [2018-03-23 08:42:55] Starting Stratum on stratum+tcp://etn.easyhash.io:3631
- [2018-03-23 08:42:55] 8 miner threads started, using 'cryptonight' algorithm.
- [2018-03-23 08:42:56] Stratum difficulty set to 50000
- [2018-03-23 08:42:59] CPU #0: 66 H, 21.22 H/s
- [2018-03-23 08:42:59] CPU #1: 66 H, 21.23 H/s
- [2018-03-23 08:42:59] CPU #2: 66 H, 21.23 H/s
- [2018-03-23 08:42:59] CPU #3: 66 H, 21.24 H/s
- [2018-03-23 08:42:59] CPU #4: 66 H, 21.23 H/s
- [2018-03-23 08:42:59] CPU #6: 66 H, 21.24 H/s
- [2018-03-23 08:42:59] CPU #5: 66 H, 21.20 H/s
- [2018-03-23 08:42:59] CPU #7: 66 H, 21.19 H/s
- ===============================================================================
- ::cpuminer-opt on CentOS 7.x::
- [wilderman@sullivan wrfncl]$ sudo yum install jansson-devel
- [wilderman@sullivan wrfncl]$ sudo yum install gmp-devel
- [wilderman@sullivan wrfncl]$ sudo yum install curl-devel
- [wilderman@sullivan wrfncl]$ sudo yum install openssl-devel
- $ cd sources/
- [wilderman@sullivan sources]$ wget https://github.com/JayDDee/cpuminer-opt/archive/v3.8.4.1.zip
- [wilderman@sullivan sources]$ mv v3.8.4.1.zip cpuminer-opt_v3.8.4.1.zip
- [wilderman@sullivan sources]$ unzip cpuminer-opt_v3.8.4.1.zip
- [wilderman@sullivan sources]$ cd cpuminer-opt-3.8.4.1/
- [wilderman@sullivan sources]$ ./autogen.sh
- [wilderman@sullivan cpuminer-opt-3.8.4.1]$ CFLAGS="-O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
- [wilderman@sullivan cpuminer-opt-3.8.4.1]$ make 2>&1 | tee make.log
- ::Debian/Ubuntu::
- wilderman@copiapo:~/sources/cpuminer-opt-3.8.4.1$ sudo apt install libjansson-dev libgmp-dev libcurl4-openssl-dev libssl-dev automake
- 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
- en wazowski agregar la linea iptables:
- 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
- [wilderman@sullivan cpuminer-opt-3.8.4.1]$ nmap -Pn -sT -p 3631 etn.easyhash.io
- Starting Nmap 6.40 ( http://nmap.org ) at 2018-03-23 13:26 -05
- Nmap scan report for etn.easyhash.io (188.166.122.231)
- Host is up (0.17s latency).
- PORT STATE SERVICE
- 3631/tcp open unknown
- Nmap done: 1 IP address (1 host up) scanned in 0.35 seconds
- ==================================================================================================================
- [wilderman@sullivan cpuminer-opt-3.8.4]$ CFLAGS="-g -O3 -march=native -Wall -DUSE_SPH_SHA" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl
- [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
- [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
- [wilderman@sullivan cpuminer-opt-3.8.4]$ gdb --args ./cpuminer -a cryptonight -o stratum+tcp://etn.easyhash.io:3631 -u etnjxRnUyZRGnxPpdpdA1FGqS2zpaSe849ujwvitV8ynQAgZ1Yv11QWP894Ehr2CnHhcPq5k3RmBwTANEYrKPoMp3xrUuMZrT9
- GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7_4.1
- Copyright (C) 2013 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "x86_64-redhat-linux-gnu".
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>...
- Reading symbols from /home/wilderman/sources/cpuminer-opt-3.8.4/cpuminer...done.
- (gdb) run
- Starting program: /home/wilderman/sources/cpuminer-opt-3.8.4/./cpuminer -a cryptonight -o stratum+tcp://etn.easyhash.io:3631 -u etnjxRnUyZRGnxPpdpdA1FGqS2zpaSe849ujwvitV8ynQAgZ1Yv11QWP894Ehr2CnHhcPq5k3RmBwTANEYrKPoMp3xrUuMZrT9
- [Thread debugging using libthread_db enabled]
- Using host libthread_db library "/lib64/libthread_db.so.1".
- ********** cpuminer-opt 3.8.4 ***********
- A CPU miner with multi algo support and optimized for CPUs
- with AES_NI and AVX2 and SHA extensions.
- BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT
- CPU: Intel(R) Xeon(R) CPU E5-2698 v3 @ 2.30GHz.
- SW built on Mar 23 2018 with GCC 4.8.5.
- CPU features: SSE2 AES AVX AVX2.
- SW features: SSE2 AES AVX AVX2.
- Algo features: SSE2 AES.
- Start mining with AES SSE2.
- [New Thread 0x2aaab0e21700 (LWP 29681)]
- [New Thread 0x2aaab1436700 (LWP 29682)]
- [2018-03-23 14:17:20] Starting Stratum on stratum+tcp://etn.easyhash.io:3631
- Program received signal SIGSEGV, Segmentation fault.
- [Switching to Thread 0x2aaab1436700 (LWP 29682)]
- 0x00002aaaaacf3cbe in dprintf_formatf () from /lib64/libcurl.so.4
- 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
- (gdb) bt
- #0 0x00002aaaaacf3cbe in dprintf_formatf () from /lib64/libcurl.so.4
- #1 0x00002aaaaacf522d in curl_maprintf () from /lib64/libcurl.so.4
- #2 0x00002aaaaacda8f9 in create_hostcache_id () from /lib64/libcurl.so.4
- #3 0x00002aaaaacdac67 in Curl_resolv () from /lib64/libcurl.so.4
- #4 0x00002aaaaacf1fd3 in Curl_connect () from /lib64/libcurl.so.4
- #5 0x00002aaaaad023a0 in multi_runsingle () from /lib64/libcurl.so.4
- #6 0x00002aaaaad03221 in curl_multi_perform () from /lib64/libcurl.so.4
- #7 0x00002aaaaacfa523 in curl_easy_perform () from /lib64/libcurl.so.4
- #8 0x000000000040f82b in stratum_connect (sctx=sctx@entry=0x914a80 <stratum>, url=<optimized out>)
- at util.c:1181
- #9 0x0000000000406d75 in stratum_thread (userdata=<optimized out>) at cpu-miner.c:2389
- #10 0x00002aaaab362e25 in start_thread () from /lib64/libpthread.so.0
- #11 0x00002aaaac7da34d in clone () from /lib64/libc.so.6
- ============================================================================================
- linux ip route
- wceren@canete:~/sources/cpuminer-opt-3.8.6$ sudo ip route add 188.166.122.231/32 via 172.25.19.11
- ============================================================================================
- wilderman@wilderman-Precision-T1650:~/git/raiblocks$ git pull
- remote: Counting objects: 2054, done.
- remote: Compressing objects: 100% (9/9), done.
- remote: Total 2054 (delta 1010), reused 1015 (delta 1010), pack-reused 1035
- Receiving objects: 100% (2054/2054), 1023.65 KiB | 1.55 MiB/s, done.
- Resolving deltas: 100% (1618/1618), completed with 109 local objects.
- From https://github.com/nanocurrency/raiblocks
- 9fb407c..f3e604c master -> origin/master
- * [new branch] database_abstraction -> origin/database_abstraction
- * [new branch] release_v11 -> origin/release_v11
- * [new branch] releases/v12 -> origin/releases/v12
- * [new branch] releases/v13 -> origin/releases/v13
- * [new branch] releases/v14 -> origin/releases/v14
- * [new branch] rocksdb -> origin/rocksdb
- * [new branch] single_fanout_set -> origin/single_fanout_set
- * [new branch] wallet_separation -> origin/wallet_separation
- * [new tag] V11.2 -> V11.2
- * [new tag] V13.0 -> V13.0
- * [new tag] V14.1 -> V14.1
- * [new tag] V11.0 -> V11.0
- * [new tag] V11.1 -> V11.1
- * [new tag] V12.0 -> V12.0
- * [new tag] V12.1 -> V12.1
- * [new tag] V14.0 -> V14.0
- Updating 9fb407c..f3e604c
- Fast-forward
- .gitignore | 1 +
- .travis.yml | 14 -
- CMakeLists.txt | 72 +---
- FindBoost.cmake | 117 +++---
- FindCryptoPP.cmake | 108 -----
- FindLevelDB.cmake | 18 -
- README.md | 64 ++-
- appveyor.yml | 44 ++
- bootstrap.py | 21 -
- ci/bootstrap_boost.sh | 30 +-
- ci/build-docker-image.sh | 15 +-
- ci/deploy-docker.sh | 38 +-
- ci/test.sh | 2 +-
- docker/node/Dockerfile | 26 +-
- docker/node/build.sh | 38 +-
- docker/node/config/beta.json | 60 +++
- docker/node/{config.json => config/live.json} | 0
- docker/node/config/test.json | 67 +++
- docker/node/entry.sh | 65 ++-
- doxygen.config | 2 +-
- images/logo.svg | 1 +
- rai/blockstore.cpp | 135 +++---
- rai/blockstore.hpp | 98 +++--
- rai/common.cpp | 186 ++++++---
- rai/common.hpp | 34 +-
- rai/core_test/block.cpp | 99 ++++-
- rai/core_test/block_store.cpp | 110 ++---
- rai/core_test/conflicts.cpp | 37 +-
- rai/core_test/gap_cache.cpp | 9 +-
- rai/core_test/interface.cpp | 16 +
- rai/core_test/ledger.cpp | 966 +++++++++++++++++++++++++++++++++++++++----
- rai/core_test/message.cpp | 61 ++-
- rai/core_test/message_parser.cpp | 68 ++-
- rai/core_test/network.cpp | 72 ++--
- rai/core_test/node.cpp | 481 +++++++++++++++-------
- rai/core_test/peer_container.cpp | 34 +-
- rai/core_test/processor_service.cpp | 6 +-
- rai/core_test/rpc.cpp | 669 +++++++++++++++++++++++++++---
- rai/core_test/uint256_union.cpp | 38 +-
- rai/core_test/wallet.cpp | 68 +--
- rai/core_test/wallets.cpp | 2 +-
- rai/core_test/work_pool.cpp | 19 +-
- rai/ledger.cpp | 411 ++++++++++++++----
- rai/ledger.hpp | 15 +-
- rai/lib/blocks.cpp | 410 +++++++++++++++++-
- rai/lib/blocks.hpp | 72 +++-
- rai/lib/interface.cpp | 13 +
- rai/lib/interface.h | 6 +
- rai/lib/numbers.cpp | 120 ++----
- rai/lib/numbers.hpp | 1 -
- rai/lib/work.cpp | 6 +-
- rai/node/bootstrap.cpp | 907 ++++++++++++++++++----------------------
- rai/node/bootstrap.hpp | 110 +++--
- rai/node/common.cpp | 381 ++++++++---------
- rai/node/common.hpp | 62 ++-
- rai/node/node.cpp | 1463 ++++++++++++++++++++++++++++++++++++++++++++---------------------
- rai/node/node.hpp | 168 +++++---
- rai/node/rpc.cpp | 945 +++++++++++++++++++++++++++++-------------
- rai/node/rpc.hpp | 10 +-
- rai/node/stats.cpp | 438 ++++++++++++++++++++
- rai/node/stats.hpp | 413 +++++++++++++++++++
- rai/node/testing.cpp | 70 ++--
- rai/node/utility.cpp | 28 +-
- rai/node/utility.hpp | 5 +-
- rai/node/wallet.cpp | 315 ++++++--------
- rai/node/wallet.hpp | 10 +-
- rai/qt/qt.cpp | 195 ++++++++-
- rai/qt/qt.hpp | 16 +
- rai/qt_test/qt.cpp | 2 +-
- rai/rai_node/entry.cpp | 165 +-------
- rai/slow_test/node.cpp | 39 +-
- rep_weights.bin | Bin 3280 -> 4240 bytes
- util/gpg_keys/argakiig.asc | 31 ++
- 73 files changed, 7574 insertions(+), 3264 deletions(-)
- delete mode 100644 FindCryptoPP.cmake
- delete mode 100644 FindLevelDB.cmake
- create mode 100644 appveyor.yml
- delete mode 100644 bootstrap.py
- create mode 100644 docker/node/config/beta.json
- rename docker/node/{config.json => config/live.json} (100%)
- create mode 100644 docker/node/config/test.json
- create mode 100644 images/logo.svg
- create mode 100644 rai/node/stats.cpp
- create mode 100644 rai/node/stats.hpp
- create mode 100644 util/gpg_keys/argakiig.asc
- wilderman@wilderman-Precision-T1650:~/git/raiblocks
- git pull
- git remote git fetch git push git pull
- https://www.atlassian.com/git/tutorials/syncing/git-pull
- 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.
- $ git fetch origin
- remote: Counting objects: 1158, done.
- remote: Total 1158 (delta 629), reused 630 (delta 629), pack-reused 528
- Receiving objects: 100% (1158/1158), 528.84 KiB | 0 bytes/s, done.
- Resolving deltas: 100% (898/898), completed with 103 local objects.
- From https://github.com/clemahieu/raiblocks
- cec5dc4..ca5bd94 master -> origin/master
- * [new branch] database_abstraction -> origin/database_abstraction
- * [new branch] release_v11 -> origin/release_v11
- * [new branch] releases/v12 -> origin/releases/v12
- * [new branch] releases/v13 -> origin/releases/v13
- * [new branch] releases/v14 -> origin/releases/v14
- * [new branch] rocksdb -> origin/rocksdb
- * [new branch] single_fanout_set -> origin/single_fanout_set
- * [new branch] wallet_separation -> origin/wallet_separation
- * [new tag] V11.0 -> V11.0
- * [new tag] V11.1 -> V11.1
- * [new tag] V11.2 -> V11.2
- * [new tag] V12.0 -> V12.0
- * [new tag] V13.0 -> V13.0
- * [new tag] V14.2 -> V14.2
- * [new tag] V12.1 -> V12.1
- * [new tag] V14.0 -> V14.0
- * [new tag] V14.1 -> V14.1
- m0n0lithic-desktop:~/git.build/raiblocks$ git checkout master
- M CMakeLists.txt
- M miniupnp
- Already on 'master'
- Your branch is behind 'origin/master' by 102 commits, and can be fast-forwarded.
- (use "git pull" to update your local branch)
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git merge origin/master
- Updating cec5dc4..ca5bd94
- error: Your local changes to the following files would be overwritten by merge:
- CMakeLists.txt
- Please, commit your changes or stash them before you can merge.
- Aborting
- $ git merge origin/master
- Updating cec5dc4..ca5bd94
- error: Your local changes to the following files would be overwritten by merge:
- CMakeLists.txt
- Please, commit your changes or stash them before you can merge.
- Aborting
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git fetch --dry-run
- remote: Counting objects: 32, done.
- remote: Compressing objects: 100% (10/10), done.
- remote: Total 32 (delta 21), reused 21 (delta 19), pack-reused 3
- Unpacking objects: 100% (32/32), done.
- From https://github.com/clemahieu/raiblocks
- ca5bd94..0c683c1 master -> origin/master
- * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git fetch origin --dry-run
- From https://github.com/clemahieu/raiblocks
- ca5bd94..0c683c1 master -> origin/master
- * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git branch -a
- * master
- remotes/origin/HEAD -> origin/master
- remotes/origin/V10.0
- remotes/origin/V9.0
- remotes/origin/block_queue
- remotes/origin/bootstrap_thread
- remotes/origin/bootstrap_thread2
- remotes/origin/database_abstraction
- remotes/origin/flow_control
- remotes/origin/forward_bootstrap
- remotes/origin/interface
- remotes/origin/interface2
- remotes/origin/master
- remotes/origin/origin/flow_control
- remotes/origin/origin/utx
- remotes/origin/pull_once_per_ip
- remotes/origin/pulls/147
- remotes/origin/pulls/266
- remotes/origin/release_v11
- remotes/origin/releases/v12
- remotes/origin/releases/v13
- remotes/origin/releases/v14
- remotes/origin/rocksdb
- remotes/origin/single_fanout_set
- remotes/origin/timed_uncheck_flush
- remotes/origin/ublocks
- remotes/origin/wallet_separation
- https://longair.net/blog/2009/04/16/git-fetch-and-merge/
- https://adamcod.es/2014/12/10/git-pull-correct-workflow.html
- wilderman@m0n0lithic-desktop:~/git/raiblocks$ git fetch origin --prune
- From https://github.com/clemahieu/raiblocks
- x [deleted] (none) -> origin/V9.0
- x [deleted] (none) -> origin/block_queue
- x [deleted] (none) -> origin/bootstrap_thread
- x [deleted] (none) -> origin/bootstrap_thread2
- x [deleted] (none) -> origin/forward_bootstrap
- x [deleted] (none) -> origin/interface
- x [deleted] (none) -> origin/interface2
- x [deleted] (none) -> origin/origin/utx
- x [deleted] (none) -> origin/pull_once_per_ip
- x [deleted] (none) -> origin/pulls/147
- x [deleted] (none) -> origin/pulls/266
- x [deleted] (none) -> origin/timed_uncheck_flush
- x [deleted] (none) -> origin/ublocks
- remote: Counting objects: 1190, done.
- remote: Compressing objects: 100% (19/19), done.
- remote: Total 1190 (delta 649), reused 643 (delta 640), pack-reused 531
- Receiving objects: 100% (1190/1190), 542.24 KiB | 0 bytes/s, done.
- Resolving deltas: 100% (918/918), completed with 107 local objects.
- cec5dc4..0c683c1 master -> origin/master
- * [new branch] database_abstraction -> origin/database_abstraction
- * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
- * [new branch] release_v11 -> origin/release_v11
- * [new branch] releases/v12 -> origin/releases/v12
- * [new branch] releases/v13 -> origin/releases/v13
- * [new branch] releases/v14 -> origin/releases/v14
- * [new branch] rocksdb -> origin/rocksdb
- * [new branch] single_fanout_set -> origin/single_fanout_set
- * [new branch] wallet_separation -> origin/wallet_separation
- * [new tag] V11.0 -> V11.0
- * [new tag] V11.1 -> V11.1
- * [new tag] V11.2 -> V11.2
- * [new tag] V12.0 -> V12.0
- * [new tag] V13.0 -> V13.0
- * [new tag] V14.2 -> V14.2
- * [new tag] V12.1 -> V12.1
- * [new tag] V14.0 -> V14.0
- * [new tag] V14.1 -> V14.1
- wilderman@m0n0lithic-desktop:~/git/raiblocks$ git merge --ff-only origin/master
- Updating cec5dc4..0c683c1
- Fast-forward
- CMakeLists.txt | 4 +-
- README.md | 2 +-
- appveyor.yml | 2 +-
- doxygen.config | 2 +-
- rai/blockstore.cpp | 83 +++---
- rai/blockstore.hpp | 23 +-
- rai/common.cpp | 160 +++++++----
- rai/common.hpp | 25 +-
- rai/core_test/block.cpp | 20 +-
- rai/core_test/block_store.cpp | 63 +----
- rai/core_test/conflicts.cpp | 25 +-
- rai/core_test/gap_cache.cpp | 6 +-
- rai/core_test/ledger.cpp | 396 ++++++++++++---------------
- rai/core_test/message.cpp | 55 ++--
- rai/core_test/message_parser.cpp | 65 +++--
- rai/core_test/network.cpp | 63 +++--
- rai/core_test/node.cpp | 463 ++++++++++++++++++++++----------
- rai/core_test/peer_container.cpp | 20 +-
- rai/core_test/processor_service.cpp | 6 +-
- rai/core_test/rpc.cpp | 231 ++++++++++++----
- rai/core_test/uint256_union.cpp | 6 +-
- rai/core_test/wallet.cpp | 79 ++----
- rai/core_test/wallets.cpp | 2 +-
- rai/core_test/work_pool.cpp | 19 +-
- rai/ledger.cpp | 99 ++-----
- rai/ledger.hpp | 35 +--
- rai/lib/blocks.cpp | 51 ++--
- rai/lib/numbers.cpp | 115 +++-----
- rai/lib/numbers.hpp | 4 -
- rai/lib/work.cpp | 4 +-
- rai/node/bootstrap.cpp | 668 ++++++++++++++++++----------------------------
- rai/node/bootstrap.hpp | 91 +++----
- rai/node/common.cpp | 438 ++++++++++++++++++------------
- rai/node/common.hpp | 114 ++++++--
- rai/node/node.cpp | 1098 +++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
- rai/node/node.hpp | 130 +++++----
- rai/node/rpc.cpp | 258 +++++++++++-------
- rai/node/rpc.hpp | 4 +-
- rai/node/stats.cpp | 441 ++++++++++++++++++++++++++++++
- rai/node/stats.hpp | 414 ++++++++++++++++++++++++++++
- rai/node/utility.cpp | 2 +-
- rai/node/wallet.cpp | 255 ++++--------------
- rai/node/wallet.hpp | 7 +-
- rai/qt/qt.cpp | 158 ++++++++++-
- rai/qt/qt.hpp | 16 ++
- rai/qt_test/qt.cpp | 2 +-
- rai/rai_node/entry.cpp | 6 +-
- rai/slow_test/node.cpp | 40 +--
- util/gpg_keys/argakiig.asc | 31 +++
- 49 files changed, 3909 insertions(+), 2392 deletions(-)
- create mode 100644 rai/node/stats.cpp
- create mode 100644 rai/node/stats.hpp
- create mode 100644 util/gpg_keys/argakiig.asc
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git fetch origin --prune
- From https://github.com/clemahieu/raiblocks
- x [deleted] (none) -> origin/V9.0
- x [deleted] (none) -> origin/block_queue
- x [deleted] (none) -> origin/bootstrap_thread
- x [deleted] (none) -> origin/bootstrap_thread2
- x [deleted] (none) -> origin/forward_bootstrap
- x [deleted] (none) -> origin/interface
- x [deleted] (none) -> origin/interface2
- x [deleted] (none) -> origin/origin/utx
- x [deleted] (none) -> origin/pull_once_per_ip
- x [deleted] (none) -> origin/pulls/147
- x [deleted] (none) -> origin/pulls/266
- x [deleted] (none) -> origin/timed_uncheck_flush
- x [deleted] (none) -> origin/ublocks
- ca5bd94..0c683c1 master -> origin/master
- * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git diff
- diff --git a/CMakeLists.txt b/CMakeLists.txt
- index ed8844f..eb2c178 100644
- --- a/CMakeLists.txt
- +++ b/CMakeLists.txt
- @@ -81,7 +81,7 @@ if (APPLE)
- elseif (WIN32)
- set (PLATFORM_LINK_FLAGS "")
- else ()
- - set (PLATFORM_LINK_FLAGS "-static-libgcc -static-libstdc++")
- + set (PLATFORM_LINK_FLAGS "-static-libgcc -static-libstdc++ -Wl,-rpath=/opt/Qt/5.11.0/gcc_64/lib")
- if (RAIBLOCKS_ASAN)
- set (PLATFORM_LINK_FLAGS "${PLATFORM_LINK_FLAGS} -fsanitize=address,undefined")
- elseif (RAIBLOCKS_ASAN_INT)
- @@ -100,6 +100,8 @@ if (RAIBLOCKS_GUI)
- find_package (Qt5 COMPONENTS Core Gui Widgets Test ${PLATFORM_QT_PACKAGES})
- include_directories (${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5Test_INCLUDE_DIRS})
- + #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}" )
- endif (RAIBLOCKS_GUI)
- if (RAIBLOCKS_SECURE_RPC)
- diff --git a/miniupnp b/miniupnp
- --- a/miniupnp
- +++ b/miniupnp
- @@ -1 +1 @@
- -Subproject commit e24d7eca28022b959b331b08e6918b58b303c1cf
- +Subproject commit e24d7eca28022b959b331b08e6918b58b303c1cf-dirty
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git clean -n
- Would remove CML.txt
- Would remove bootstrap_weights.cpp
- Would remove nano_wallet
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git clean -fdX
- Removing CMakeCache.txt
- Removing CMakeFiles/
- Removing CPackConfig.cmake
- Removing CPackSourceConfig.cmake
- Removing Makefile
- Removing cmake_install.cmake
- Removing gtest/CMakeFiles/
- Removing gtest/Makefile
- Removing gtest/cmake_install.cmake
- Removing libargon2.a
- Removing libblake2.a
- Removing libcryptopp.a
- Removing libed25519.a
- Removing liblmdb.a
- Removing libnode.a
- Removing libqt.a
- Removing librai_lib_static.a
- Removing libsecure.a
- Removing libxxhash.a
- Removing qrc_resources.cpp
- Removing rai_node
- Removing resources.qrc.depends
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git fetch origin --prune
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git merge --ff-only origin/master
- Updating cec5dc4..0c683c1
- error: Your local changes to the following files would be overwritten by merge:
- CMakeLists.txt
- Please, commit your changes or stash them before you can merge.
- Aborting
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git status
- On branch master
- Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
- (use "git pull" to update your local branch)
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- (commit or discard the untracked or modified content in submodules)
- modified: CMakeLists.txt
- modified: miniupnp (modified content, untracked content)
- no changes added to commit (use "git add" and/or "git commit -a")
- $ 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}\" )"
- *** Please tell me who you are.
- Run
- git config --global user.email "[email protected]"
- git config --global user.name "Your Name"
- to set your account's default identity.
- Omit --global to set the identity only in this repository.
- fatal: unable to auto-detect email address (got 'wilderman@m0n0lithic-desktop.(none)')
- Cannot save the current index state
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git config user.email "[email protected]"
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git config user.name "Wilderman Ceren"
- $ 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
- HEAD is now at cec5dc4 Fixing formatting.
- $ git status
- On branch master
- Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
- (use "git pull" to update your local branch)
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- (commit or discard the untracked or modified content in submodules)
- modified: miniupnp (modified content, untracked content)
- no changes added to commit (use "git add" and/or "git commit -a")
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks/miniupnp$ git clean -fdX
- Removing miniupnpc/libminiupnpc.a
- Removing miniupnpc/miniupnpcstrings.h
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks/miniupnp$ git clean -fdx
- Removing miniupnpc/CMakeFiles/
- Removing miniupnpc/cmake_install.cmake
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks/miniupnp$
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git status
- On branch master
- Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
- (use "git pull" to update your local branch)
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- (commit or discard the untracked or modified content in submodules)
- modified: miniupnp (modified content)
- no changes added to commit (use "git add" and/or "git commit -a")
- ilderman@m0n0lithic-desktop:~/git.build/raiblocks/miniupnp$ git stash save "modified: miniupnp/Makefile (modified content)"
- Saved working directory and index state On (no branch): modified: miniupnp/Makefile (modified content)
- HEAD is now at e24d7ec fix error of wrong matched parentheses in miniupnpc-libevent/miniupnpc-libevent.c
- $ git status
- On branch master
- Your branch is behind 'origin/master' by 105 commits, and can be fast-forwarded.
- (use "git pull" to update your local branch)
- nothing to commit, working directory clean
- wilderman@m0n0lithic-desktop:~/git.build/raiblocks$ git merge --ff-only origin/master
- Updating cec5dc4..0c683c1
- Fast-forward
- CMakeLists.txt | 4 +-
- README.md | 2 +-
- appveyor.yml | 2 +-
- doxygen.config | 2 +-
- rai/blockstore.cpp | 83 +++---
- rai/blockstore.hpp | 23 +-
- rai/common.cpp | 160 +++++++----
- rai/common.hpp | 25 +-
- rai/core_test/block.cpp | 20 +-
- rai/core_test/block_store.cpp | 63 +----
- rai/core_test/conflicts.cpp | 25 +-
- rai/core_test/gap_cache.cpp | 6 +-
- rai/core_test/ledger.cpp | 396 ++++++++++++---------------
- rai/core_test/message.cpp | 55 ++--
- rai/core_test/message_parser.cpp | 65 +++--
- rai/core_test/network.cpp | 63 +++--
- rai/core_test/node.cpp | 463 ++++++++++++++++++++++----------
- rai/core_test/peer_container.cpp | 20 +-
- rai/core_test/processor_service.cpp | 6 +-
- rai/core_test/rpc.cpp | 231 ++++++++++++----
- rai/core_test/uint256_union.cpp | 6 +-
- rai/core_test/wallet.cpp | 79 ++----
- rai/core_test/wallets.cpp | 2 +-
- rai/core_test/work_pool.cpp | 19 +-
- rai/ledger.cpp | 99 ++-----
- rai/ledger.hpp | 35 +--
- rai/lib/blocks.cpp | 51 ++--
- rai/lib/numbers.cpp | 115 +++-----
- rai/lib/numbers.hpp | 4 -
- rai/lib/work.cpp | 4 +-
- rai/node/bootstrap.cpp | 668 ++++++++++++++++++----------------------------
- rai/node/bootstrap.hpp | 91 +++----
- rai/node/common.cpp | 438 ++++++++++++++++++------------
- rai/node/common.hpp | 114 ++++++--
- rai/node/node.cpp | 1098 +++++++++++++++++++++++++++++++++++++++++++++++++++------------------------
- rai/node/node.hpp | 130 +++++----
- rai/node/rpc.cpp | 258 +++++++++++-------
- rai/node/rpc.hpp | 4 +-
- rai/node/stats.cpp | 441 ++++++++++++++++++++++++++++++
- rai/node/stats.hpp | 414 ++++++++++++++++++++++++++++
- rai/node/utility.cpp | 2 +-
- rai/node/wallet.cpp | 255 ++++--------------
- rai/node/wallet.hpp | 7 +-
- rai/qt/qt.cpp | 158 ++++++++++-
- rai/qt/qt.hpp | 16 ++
- rai/qt_test/qt.cpp | 2 +-
- rai/rai_node/entry.cpp | 6 +-
- rai/slow_test/node.cpp | 40 +--
- util/gpg_keys/argakiig.asc | 31 +++
- 49 files changed, 3909 insertions(+), 2392 deletions(-)
- create mode 100644 rai/node/stats.cpp
- create mode 100644 rai/node/stats.hpp
- create mode 100644 util/gpg_keys/argakiig.asc
- ==================================================================================================
- nano/raiblocks wallet node at office
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git fetch origin --prune
- From https://github.com/nanocurrency/raiblocks
- x [deleted] (none) -> origin/V9.0
- x [deleted] (none) -> origin/block_queue
- x [deleted] (none) -> origin/bootstrap_thread
- x [deleted] (none) -> origin/bootstrap_thread2
- x [deleted] (none) -> origin/forward_bootstrap
- x [deleted] (none) -> origin/interface
- x [deleted] (none) -> origin/interface2
- x [deleted] (none) -> origin/origin/utx
- x [deleted] (none) -> origin/pull_once_per_ip
- x [deleted] (none) -> origin/pulls/147
- x [deleted] (none) -> origin/pulls/266
- x [deleted] (none) -> origin/timed_uncheck_flush
- x [deleted] (none) -> origin/ublocks
- remote: Counting objects: 2347, done.
- remote: Compressing objects: 100% (22/22), done.
- remote: Total 2347 (delta 1189), reused 1183 (delta 1180), pack-reused 1145
- Receiving objects: 100% (2347/2347), 1.25 MiB | 1.59 MiB/s, done.
- Resolving deltas: 100% (1847/1847), completed with 105 local objects.
- 9fb407c..0c683c1 master -> origin/master
- * [new branch] database_abstraction -> origin/database_abstraction
- * [new branch] desktop-wallet-rc2 -> origin/desktop-wallet-rc2
- * [new branch] release_v11 -> origin/release_v11
- * [new branch] releases/v12 -> origin/releases/v12
- * [new branch] releases/v13 -> origin/releases/v13
- * [new branch] releases/v14 -> origin/releases/v14
- * [new branch] rocksdb -> origin/rocksdb
- * [new branch] single_fanout_set -> origin/single_fanout_set
- * [new branch] wallet_separation -> origin/wallet_separation
- * [new tag] V11.2 -> V11.2
- * [new tag] V13.0 -> V13.0
- * [new tag] V14.2 -> V14.2
- * [new tag] V11.0 -> V11.0
- * [new tag] V11.1 -> V11.1
- * [new tag] V12.0 -> V12.0
- * [new tag] V12.1 -> V12.1
- * [new tag] V14.0 -> V14.0
- * [new tag] V14.1 -> V14.1
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git merge --ff-only origin/master
- Updating 9fb407c..0c683c1
- error: Your local changes to the following files would be overwritten by merge:
- CMakeLists.txt
- FindBoost.cmake
- README.md
- ci/bootstrap_boost.sh
- ci/build-docker-image.sh
- ci/deploy-docker.sh
- ci/test.sh
- docker/node/Dockerfile
- docker/node/build.sh
- docker/node/entry.sh
- doxygen.config
- rai/blockstore.cpp
- rai/blockstore.hpp
- rai/common.cpp
- rai/common.hpp
- rai/core_test/block.cpp
- rai/core_test/block_store.cpp
- rai/core_test/conflicts.cpp
- rai/core_test/gap_cache.cpp
- rai/core_test/interface.cpp
- rai/core_test/ledger.cpp
- rai/core_test/message.cpp
- rai/core_test/message_parser.cpp
- rai/core_test/network.cpp
- rai/core_test/node.cpp
- rai/core_test/peer_container.cpp
- rai/core_test/processor_service.cpp
- rai/core_test/rpc.cpp
- rai/core_test/uint256_union.cpp
- rai/core_test/wallet.cpp
- rai/core_test/wallets.cpp
- rai/core_test/work_pool.cpp
- rai/ledger.cpp
- rai/ledger.hpp
- rai/lib/blocks.cpp
- rai/lib/blocks.hpp
- rai/lib/interface.cpp
- rai/lib/interface.h
- rai/lib/numbers.cpp
- rai/lib/numbers.hpp
- rai/lib/work.cpp
- rai/node/bootstrap.cpp
- rai/node/bootstrap.hpp
- rai/node/common.cpp
- rai/node/common.hpp
- rai/node/node.cpp
- rai/node/node.hpp
- rai/node/rpc.cpp
- rai/node/rpc.hpp
- rai/node/testing.cpp
- rai/node/utility.cpp
- rai/node/utility.hpp
- rai/node/wallet.cpp
- rai/node/wallet.hpp
- rai/qt/qt.cpp
- rai/qt/qt.hpp
- rai/qt_test/qt.cpp
- rai/rai_node/entry.cpp
- rai/slow_test/node.cpp
- rep_weights.bin
- Please, commit your changes or stash them before you can merge.
- error: The following untracked working tree files would be overwritten by merge:
- appveyor.yml
- docker/node/config/beta.json
- docker/node/config/live.json
- docker/node/config/test.json
- images/logo.svg
- rai/node/stats.cpp
- rai/node/stats.hpp
- util/gpg_keys/argakiig.asc
- Please move or remove them before you can merge.
- Aborting
- https://stackoverflow.com/questions/673407/how-do-i-clear-my-local-working-directory-in-git
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git reset --hard
- HEAD is now at 9fb407c Fix docker boost url
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git clean -f
- Removing appveyor.yml
- Removing images/logo.svg
- Removing rai/node/stats.cpp
- Removing rai/node/stats.hpp
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git merge --ff-only origin/master
- Updating 9fb407c..0c683c1
- error: The following untracked working tree files would be overwritten by merge:
- docker/node/config/beta.json
- docker/node/config/live.json
- docker/node/config/test.json
- util/gpg_keys/argakiig.asc
- Please move or remove them before you can merge.
- Aborting
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git clean -d -x -f
- Removing docker/node/config/
- Removing util/
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ git merge --ff-only origin/master
- Updating 9fb407c..0c683c1
- Fast-forward
- .gitignore | 1 +
- .travis.yml | 14 -
- CMakeLists.txt | 72 +--
- FindBoost.cmake | 117 +++--
- FindCryptoPP.cmake | 108 ----
- FindLevelDB.cmake | 18 -
- README.md | 64 ++-
- appveyor.yml | 44 ++
- bootstrap.py | 21 -
- ci/bootstrap_boost.sh | 30 +-
- ci/build-docker-image.sh | 15 +-
- ci/deploy-docker.sh | 38 +-
- ci/test.sh | 2 +-
- docker/node/Dockerfile | 26 +-
- docker/node/build.sh | 38 +-
- docker/node/config/beta.json | 60 +++
- docker/node/{config.json => config/live.json} | 0
- docker/node/config/test.json | 67 +++
- docker/node/entry.sh | 65 ++-
- doxygen.config | 2 +-
- images/logo.svg | 1 +
- rai/blockstore.cpp | 163 +++---
- rai/blockstore.hpp | 104 +++-
- rai/common.cpp | 193 +++++--
- rai/common.hpp | 36 +-
- rai/core_test/block.cpp | 99 +++-
- rai/core_test/block_store.cpp | 110 ++--
- rai/core_test/conflicts.cpp | 37 +-
- rai/core_test/gap_cache.cpp | 9 +-
- rai/core_test/interface.cpp | 16 +
- rai/core_test/ledger.cpp | 966 +++++++++++++++++++++++++++++++----
- rai/core_test/message.cpp | 61 ++-
- rai/core_test/message_parser.cpp | 89 ++--
- rai/core_test/network.cpp | 89 +++-
- rai/core_test/node.cpp | 532 ++++++++++++++------
- rai/core_test/peer_container.cpp | 44 +-
- rai/core_test/processor_service.cpp | 6 +-
- rai/core_test/rpc.cpp | 669 ++++++++++++++++++++++---
- rai/core_test/uint256_union.cpp | 38 +-
- rai/core_test/wallet.cpp | 68 +--
- rai/core_test/wallets.cpp | 2 +-
- rai/core_test/work_pool.cpp | 19 +-
- rai/ledger.cpp | 408 +++++++++++----
- rai/ledger.hpp | 15 +-
- rai/lib/blocks.cpp | 410 ++++++++++++++-
- rai/lib/blocks.hpp | 72 ++-
- rai/lib/interface.cpp | 13 +
- rai/lib/interface.h | 6 +
- rai/lib/numbers.cpp | 120 ++---
- rai/lib/numbers.hpp | 4 -
- rai/lib/work.cpp | 6 +-
- rai/node/bootstrap.cpp | 911 +++++++++++++++------------------
- rai/node/bootstrap.hpp | 110 ++--
- rai/node/common.cpp | 481 +++++++++++-------
- rai/node/common.hpp | 126 ++++-
- rai/node/node.cpp | 1767 +++++++++++++++++++++++++++++++++++++++++++++++------------------
- rai/node/node.hpp | 212 +++++---
- rai/node/rpc.cpp | 947 ++++++++++++++++++++++++-----------
- rai/node/rpc.hpp | 10 +-
- rai/node/stats.cpp | 441 ++++++++++++++++
- rai/node/stats.hpp | 414 +++++++++++++++
- rai/node/testing.cpp | 70 +--
- rai/node/utility.cpp | 28 +-
- rai/node/utility.hpp | 5 +-
- rai/node/wallet.cpp | 315 +++++-------
- rai/node/wallet.hpp | 10 +-
- rai/qt/qt.cpp | 195 +++++++-
- rai/qt/qt.hpp | 16 +
- rai/qt_test/qt.cpp | 2 +-
- rai/rai_node/entry.cpp | 165 +-----
- rai/slow_test/node.cpp | 39 +-
- rep_weights.bin | Bin 3280 -> 4240 bytes
- util/gpg_keys/argakiig.asc | 31 ++
- 73 files changed, 8199 insertions(+), 3303 deletions(-)
- delete mode 100644 FindCryptoPP.cmake
- delete mode 100644 FindLevelDB.cmake
- create mode 100644 appveyor.yml
- delete mode 100644 bootstrap.py
- create mode 100644 docker/node/config/beta.json
- rename docker/node/{config.json => config/live.json} (100%)
- create mode 100644 docker/node/config/test.json
- create mode 100644 images/logo.svg
- create mode 100644 rai/node/stats.cpp
- create mode 100644 rai/node/stats.hpp
- create mode 100644 util/gpg_keys/argakiig.asc
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ cmake -DBOOST_ROOT=/usr/local -DQt5_DIR=/usr/local/lib/cmake/Qt5 -DRAIBLOCKS_GUI=ON
- wilderman@wilderman-Precision-T1650:~/git.build/raiblocks$ make rai_node
- wilderman@wilderman-Precision-T1650:~/bin$ ./rai_node --diagnostics
- Testing hash function
- Testing key derivation function
- Dumping OpenCL information
- OpenCL found 0 platforms and 0 devices
- $ ./rai_node --debug_block_count
- Block count: 7319081
- wilderman@wilderman-Precision-T1650:~/bin$ ./rai_node --daemon --debug_block_count
- wilderman@wilderman-Precision-T1650:~/bin$ curl -g -d '{ "action": "block_count" }' '[::1]:7076'
- {
- "count": "7319081",
- "unchecked": "38621"
- }
- ======================================================================================================
- =============================================================================
- 2do intento:
- $ python3 getOHLC_v02.py --base=btc --quote=usd --sync
- (2880, datetime.datetime(2018, 6, 4, 0, 0))
- 52
- https://min-api.cryptocompare.com/data/histoday?e=CCCAGG&fsym=BTC&tsym=USD&limit=53
- [['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]]
- 2018-06-03 00:00:00 1
- > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(515)upgDBDay()
- -> print('diff_.days == 1')
- error en linea 703
- (Pdb) n
- > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(703)upgDBDay()
- -> uapr_= upgtAPR(cursor,table+"_tr",h_,l_,pc,patrt,id_,'tr') #=>(tr,atrt)
- (Pdb) p patrt
- 331.265
- (Pdb) n
- apsw.SQLError: SQLError: no such table: btcusd_tr_tr
- > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(703)upgDBDay()
- -> uapr_= upgtAPR(cursor,table+"_tr",h_,l_,pc,patrt,id_,'tr') #=>(tr,atrt)
- -> for res_ in cur_.execute(sql_):
- (Pdb) l
- 377 print('papr=',papr,'pr=',pr,'apr=',apr)
- 378 else:
- 379 print(table)
- 380 rfin = id_ - 20
- 381 sql_ = "select sum(tr) from "+table+"_tr where id < "+str(id_)+" and id > "+str(rfin)
- 382 -> for res_ in cur_.execute(sql_):
- 383 acumTR += float(res_[0])
- 384 atrt=(acumTR+tr)/20 #ATRT-SMA BIEN CALCULADO!!
- 385 #atrt=((papr*19)+tr)/20 #ATRT-SMA ESTA MAL CALCULADO!!
- 386 #atrt=((patrt*19)+tr)/20 #ATR-SMA
- 387 print('patrt=',papr,'tr=',tr,'atrt=',atrt)
- (Pdb) b 384
- Breakpoint 2 at /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py:384
- (Pdb) c
- Traceback (most recent call last):
- File "getOHLC_v02.py", line 812, in <module>
- main()
- File "getOHLC_v02.py", line 801, in main
- upgDBDay(conn, base+quote, res__, diff, lstd[1])
- File "getOHLC_v02.py", line 704, in upgDBDay
- uapr_= upgtAPR(cursor,table,h_,l_,pc,patrt,id_,'tr') #=>(tr,atrt)
- File "getOHLC_v02.py", line 383, in upgtAPR
- acumTR += float(res_[0])
- UnboundLocalError: local variable 'acumTR' referenced before assignment
- (Pdb) n
- > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(388)upgtAPR()
- -> print('patrt=',papr,'tr=',tr,'atrt=',atrt)
- (Pdb) n
- patrt= 331.265 tr= 291.5199999999995 atrt= 331.265
- > /home/wilderman/Dropbox/Documents/cryptoc/scripts/python/getOHLC_v02.py(389)upgtAPR()
- -> pr = tr
- sqlite> select sum(tr) from btcusd_tr where id < 2880 and id > 2860;
- 6333.78
- sqlite> select sum(tr) from btcusd_tr where id < 2881 and id > 2860;
- 6625.3
- ::DATO API::
- ['20180605', 7503.32, 7672.7, 7394.97, 7629.4]
- p row
- ['20180605', 7503.32, 7672.7, 7394.97, 7629.4]
- (Pdb) p rowid
- (2881,)
- (Pdb) p table,pcid
- ('btcusd', 2881)
- (Pdb) p pc
- 7503.2
- (Pdb) p pr
- 1.0227266668443924
- ::btcusd_pr::
- id, pclose, papr, pr, apr, patr atr, patre, atre
- 2880|7719.75|1.02171774|1.0054387|1.02090379|1.01877242|1.01795079|1.01863829|1.01675917
- (Pdb) p papr
- 1.02090379
- (Pdb) p apr
- 1.0209949338422195
- (Pdb) p pr
- 1.0227266668443924
- #calcular ATR(SMA): capturar los ultimos 20 PRs y acumularlos/sumarlos
- (Pdb) p atr
- 1.0189545078422195
- (Pdb) p a
- 0.09523809523809523
- -> atre = calcATRe(pr,a,atr)
- (Pdb) p atre
- 1.0193137610805216
Add Comment
Please, Sign In to add comment