This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
● rnode.service - RChain Node | |
Loaded: loaded (/etc/systemd/system/rnode.service; enabled; vendor preset: enabled) | |
Active: active (running) since Wed 2018-09-12 21:25:48 UTC; 1min 9s ago | |
Main PID: 18748 (java) | |
Tasks: 118 (limit: 4915) | |
CGroup: /system.slice/rnode.service | |
└─18748 java -cp /usr/share/rnode/lib/coop.rchain.rnode-0.6.4.jar:/usr/share/rnode/lib/coop.rchain.casper-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.block-storage-0.0.1-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.shared-0.1.jar:/usr/share/rnode/lib/coop.rchain.models-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.rspace-0.2.1-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.crypto-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.comm-0.1.jar:/usr/share/rnode/lib/coop.rchain.rholang-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.rholang-proto-build-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/java-cup-11b-runtime.jar:/usr/share/rnode/lib/JLex.jar:/usr/share/rnode/lib/java-cup-11b.jar:/usr/share/rnode/lib/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
● rnode.service - RChain Node | |
Loaded: loaded (/etc/systemd/system/rnode.service; enabled; vendor preset: enabled) | |
Active: active (running) since Wed 2018-09-12 20:50:43 UTC; 15min ago | |
Main PID: 12430 (java) | |
Tasks: 4080 (limit: 4915) | |
CGroup: /system.slice/rnode.service | |
└─12430 java -cp /usr/share/rnode/lib/coop.rchain.rnode-0.6.4.jar:/usr/share/rnode/lib/coop.rchain.casper-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.block-storage-0.0.1-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.shared-0.1.jar:/usr/share/rnode/lib/coop.rchain.models-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.rspace-0.2.1-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.crypto-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.comm-0.1.jar:/usr/share/rnode/lib/coop.rchain.rholang-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/coop.rchain.rholang-proto-build-0.1.0-SNAPSHOT.jar:/usr/share/rnode/lib/java-cup-11b-runtime.jar:/usr/share/rnode/lib/JLex.jar:/usr/share/rnode/lib/java-cup-11b.jar:/usr/share/rnode/lib/o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:57:26.623 [main] INFO c.r.n.configuration.Configuration$ - Using configuration file: /var/lib/rnode/rnode.toml | |
18:57:28.014 [main] WARN c.r.n.configuration.Configuration$ - Configuration file /var/lib/rnode/rnode.toml not found | |
18:57:28.762 [main] INFO c.r.n.configuration.Configuration$ - Starting with profile docker | |
INFO - trying to open ports using UPnP.... | |
INFO - No gateway devices found | |
INFO - No need to open any port | |
Using data_dir: /var/lib/rnode | |
No certificate found at path /var/lib/rnode/node.certificate.pem | |
Generating a X.509 certificate for the node | |
Generating a PEM secret key for the node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
02:08:13.016 [grpc-default-executor-107] INFO c.r.casper.MultiParentCasperImpl - Received Deploy #1536545292539 -- @{"dupe"}!(5) | for( @{x0... | |
@{["@@highCard game:", Unforgeable(0x53a1ab13f9ae9a0b666324ec94479e6ef3ee4e908c04f712063637c8ed86dfdf)]} | |
@{["@@pick from among:", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]]} | |
@{["@@pick from among:", ["Diamonds", "Clubs", "Hearts", "Spades"]]} | |
@{["@@pick from among:", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]]} | |
@{["@@pick from among:", ["Diamonds", "Clubs", "Hearts", "Spades"]]} | |
@{["winner", ("Spades", 10)]} | |
@{["loser", ("Spades", 2)]} | |
@{["@@highCard game:", Unforgeable(0x38be3c6f0e92ceee8f9c78c9e788090a34f80aef06cc0a71886df7dd6c9eba8a)]} | |
@{["@@pick from among:", ["Diamonds", "Clubs", "Hearts", "Spades"]]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% while :; do ./bin/rnode deploy --from "0x1" --phlo-limit 0 --phlo-price 0 --nonce 0 ../../work/rchain/rholang/examples/tut-hello.rho ; ./bin/rnode propose; sleep 1; done | |
19:29:32.560 [main] INFO c.r.n.configuration.Configuration$ - Starting with profile default | |
Response: Success! | |
./bin/rnode deploy --from "0x1" --phlo-limit 0 --phlo-price 0 --nonce 0 8,21s user 0,49s system 142% cpu 6,087 total | |
19:29:37.853 [main] INFO c.r.n.configuration.Configuration$ - Starting with profile default | |
Response: Success! Block e877d67b98... created and added. | |
./bin/rnode propose 7,23s user 0,34s system 112% cpu 6,705 total | |
19:29:45.929 [main] INFO c.r.n.configuration.Configuration$ - Starting with profile default | |
Response: Success! | |
./bin/rnode deploy --from "0x1" --phlo-limit 0 --phlo-price 0 --nonce 0 8,23s user 0,60s system 141% cpu 6,265 total |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ./scripts/p2p-test-tool.py -b -p 2 -t -T integration1 | |
Removing resources for docker network rchain.coop | |
removing rchain.coop | |
Starting bootstrap node. | |
Starting bootstrap node. | |
creating bootstrap.rchain.coop | |
Installing additonal packages on container. | |
Starting peer nodes. | |
Create and run peer nodes to connect via bootstrap. | |
creating peer0.rchain.coop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Pinboard { | |
constructor(apiToken) { | |
this.authToken = apiToken; | |
} | |
fetchApi(path, params = {}) { | |
let urlParams = new URLSearchParams(); | |
for (let [key, value] of Object.entries(params)) | |
urlParams.append(key, value); | |
urlParams.append('auth_token', this.authToken); | |
urlParams.append('format', 'json'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Pinboard } from './Pinboard.js'; | |
//////////////////////////////////////////////////////////////////////////////// | |
const CMD_BOOKMARK = 'bookmark'; | |
const CMD_READLATER = 'readLater'; | |
const FLAG_TOREAD = 1; | |
let settings = { | |
syncPeriod: 10, | |
apiToken: null | |
}; | |
let pb; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /insight-api-zen/tx/send HTTP/1.1 | |
content-type: multipart/form-data;boundary=--------------------------169936334099816031804939 | |
accept: */* | |
content-length: 762 | |
user-agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch) | |
accept-encoding: gzip,deflate | |
connection: close | |
Host: explorer.zenmine.pro | |
----------------------------169936334099816031804939 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const crypto = require("crypto"); | |
const sqlite3 = require('sqlite3').verbose(); | |
const sqljs = require('sql.js'); | |
const zencashjs = require('zencashjs'); | |
function decryptWallet(login, password, path) { | |
let i = Buffer.byteLength(login); | |
let inputBytes = fs.readFileSync(path); | |
let recoveredLogin = inputBytes.slice(0, i).toString("utf8"); |