This file contains 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
From http://counterparty.io/docs/federated_node/ | |
Other Operations | |
Stop all configured services | |
sudo ~xcp/federatednode_build/run.py --op=stop | |
Restart all configured services |
This file contains 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
debug_mi_id | synapse_id | customer_bank_account_id | date | UserID | returning_customer | username | name | Cart Amount | Account Verified | Real Time KYC | Bank Account Added | Credit Card Added | Completed Sale | Promotional | Transaction Revenue | Exchange Revenue | Revenue | Fraud Suspected | Reason for Sale Failure | |
-------------+------------+--------------------------+------------+--------+--------------------+--------------------------------+-----------------------+-------------+------------------+---------------+--------------------+-------------------+----------------+-------------+---------------------+------------------+---------+-----------------+------------------------- | |
148 | 1 | 53 | 2015-08-26 | 3 | NEW | cmlacy | Geary Gearworks | 50 | t | f | t | f | 0 | 0 | |
This file contains 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
'use strict'; | |
// var _ = require('lodash'); | |
var async = require('async'); | |
var config = require('config'); | |
var synapse = require('lib/synapse.js'); | |
var Sequelize = require('sequelize'); | |
var moment = require('moment'); | |
var sequelize = new Sequelize(config.db.uri, config.db.options); |
This file contains 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
sudo apt-get install python-pip cython libxml2-dev libxslt1-dev python-dev | |
git clone https://github.com/digitaltangibletrust/counterblockd.git | |
cd counterblockd | |
sudo pip install -r pip-requirements.txt |
This file contains 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
cd ~/counterpartyd_build/dist | |
sudo sv stop counterpartyd | |
cd ~ | |
mv counterpartyd_build counterpartyd_build.backup | |
git clone https://github.com/CounterpartyXCP/counterpartyd_build ~/counterpartyd_build | |
cd ~/.config/counterpartyd | |
mv counterpartyd.9.testnet.db counterpartyd.9.testnet.db.backup | |
cd ~/counterpartyd_build | |
sudo python3 setup.py --with-bootstrap-db | |
cd ~/counterpartyd_build/dist |
This file contains 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
# To stop bitcoind: | |
bitcoind stop | |
# To start bitcoind with flag and rebuild: | |
bitcoind -addrindex -reindex | |
# To start counterparty as a service: | |
sudo sv start counterpartyd |
This file contains 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
bitcoin@goldcust1:~$ sudo apt-get install -y openssh-server git libminiupnpc-dev build-essential autoconf libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler | |
bitcoin@goldcust1:~$ sudo apt-get install pkg-config | |
bitcoin@goldcust1:~$ cd $HOME | |
bitcoin@goldcust1:~$ wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz | |
bitcoin@goldcust1:~$ tar -xvf db-4.8.30.NC.tar.gz | |
bitcoin@goldcust1:~$ cd db-4.8.30.NC/build_unix | |
bitcoin@goldcust1:~db-4.8.30.NC/build_unix$ BDB_PREFIX=$(pwd)/build | |
bitcoin@goldcust1:~db-4.8.30.NC/build_unix$ ../dist/configure --disable-shared --enable-cxx --prefix=$BDB_PREFIX CPPFLAGS="-fPIC" | |
bitcoin@goldcust1:~db-4.8.30.NC/build_unix$ make install | |
bitcoin@goldcust1:~db-4.8.30.NC/build_unix$ cd $HOME |
This file contains 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
var request = require("request"); | |
var async = require("async"); | |
module.exports = function (params, resultBus, callback) { | |
var goldfeed = request.defaults({ | |
"url": params.url, | |
"json": true, | |
"timeout": params.timeout | |
}); |
This file contains 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
// Send some BTC to cover distribution fees. | |
var feeAmount = Math.ceil( ( quantity * 0.0003 + 0.0001 ) * satoshisPerBTC ) | |
var feeParams = { | |
source: sourceAddr.publicAddress, | |
destination: destPub, | |
quantity: feeAmount, | |
asset: 'BTC', | |
pubkey: pubKey, | |
allow_unconfirmed_inputs: true, | |
encoding: "multisig" |
This file contains 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
{ '0': | |
{ accept_transactions: [ [Object] ], | |
balance: '0.0', | |
bought_transactions: [], | |
exodus_transactions: [], | |
offer_transactions: [], | |
received_transactions: [ [Object], [Object] ], | |
sent_transactions: | |
[ [Object], | |
[Object], |
NewerOlder