Skip to content

Instantly share code, notes, and snippets.

View weissjeffm's full-sized avatar

Jeff Weiss weissjeffm

View GitHub Profile
opentxs> newoffer --myacct otxDDEB6jty1JaqozDUnkTfnwfpeP29zNXw5 --hisacct otxQ7GSxoyGBiGfAqfFBG1DSZpYNdeA5KgJB --type ask --scale 1 --mininc 1 --quantity 10 --price 29
Using myacct: otxDDEB6jty1JaqozDUnkTfnwfpeP29zNXw5
Using hisacct: otxQ7GSxoyGBiGfAqfFBG1DSZpYNdeA5KgJB
=====>BEGIN Sending getNymMarketOffers message via ZMQ... Request number: 123
Error: cannot load market offer list.
Usage: newoffer --myacct <assetaccount> --hisacct <currencyaccount> --type <ask|bid> --scale <1|10|100|...> --mininc <min increment> --quantity <quantity> --price <price> [--lifespan <seconds> (default 86400 (1 day))]
Create a new market offer.
#!/bin/bash
cd ~/workspace/opentxs
rm -rf build/
mkdir build
cd build
cmake .. -DPYTHON=1 -DSIGNAL_HANLDER=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_LIBRARY=/usr/lib64/libpython3.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.3m -DDOC_FULLGRAPHS=YES -DUSE_CCACHE=yes
#-DCMAKE_BUILD_TYPE=Debug
./makeclean.sh
cd build
make -j6 && sudo make install
#background doc build
make doc > /dev/null 2>&1 &
@weissjeffm
weissjeffm / log
Created November 13, 2014 16:23
log
Nov 13, 2014 5:12:50 PM javax.jmdns.impl.DNSIncoming readAnswer
SEVERE: Could not find record class. domain: type: TYPE_IGNORE index 0
dns[response,192.168.1.94:5353, length=179, id=0x0, flags=0x8400:r:aa, answers=1, additionals=2
answers:
[Pointer@544366 type: TYPE_PTR index 12, class: CLASS_IN index 1, name: 94.1.168.192.in-addr.arpa. ttl: '119/120' alias: 'Camerons-MacBook-Pro.local.']
additionals:
[IPv4Address@559224774 type: TYPE_A index 1, class: CLASS_IN index 1-unique, name: Camerons-MacBook-Pro.local. ttl: '119/120' address: '192.168.1.94']
[IPv6Address@1502337346 type: TYPE_AAAA index 28, class: CLASS_IN index 1-unique, name: Camerons-MacBook-Pro.local. ttl: '119/120' address: 'fe80:0:0:0:6e40:8ff:fe9a:36e8']]
answer: [Pointer@544366 type: TYPE_PTR index 12, class: CLASS_IN index 1, name: 94.1.168.192.in-addr.arpa. ttl: '119/120' alias: 'Camerons-MacBook-Pro.local.']
additional: [IPv4Address@559224774 type: TYPE_A index 1, class: CLASS_IN index 1-unique, name: Camerons-MacBook-Pro.lo
-----BEGIN SIGNED MESSAGE-----\nHash: HASH256\n\n<?xml version="1.0"?>\n\n<OTmessage\n version="2.0"\n dateSigned="1415892482">\n\n<@getMarketList\n requestNum="131"\n success="true"\n nymID="otxFVZkkNN8ztvPuZNrHLsRuRPaGK9gdWm1A"\n serverID="otxHTYH27sMaP4RBWEjxtZ3C1AHPMgbqTNeq"\n depth="1">\n\n<messagePayload>\nCsYBCsMBCgASJG90eEhUWUgyN3NNYVA0UkJXRWp4dFozQzFBSFBNZ2JxVE5lcRok\nb3R4UW1XZDJTbTJmQURpQ2JQdHZEYkRzRDlFTjJQaDRGVzJUIiRvdHhNZDJnV3ZO\nTHlrODM2UDJ6WnROQms5RWNZWkdNeFdEZUgqJG90eFMzM1RFdXpZbkxOVEg2NEpQ\nQmJ5U0ZzNDl6a01ETDc1TjIBMToBMEIBMEoBMFIBMVoBMGIBMGoBMHIBMHoBMIIB\nATCKAQEwkgEA\n</messagePayload>\n\n</@getMarketList>\n\n</OTmessage>\n-----BEGIN MESSAGE SIGNATURE-----\nVersion: Open Transactions 0.93.0-1242-gff7dcbc\nComment: http://github.com/FellowTraveler/Open-Transactions/wiki\nMeta: AUDX\n\nCoABukOTZFtQV0+yIOX2sM0h4ArwRxDe4w4zfXhiyTIK11vRWsfSAUo+cxDmGxkt\nWvIwnuEVWJs+HpGA6kjAFnhdcx6eU6SYNrNr+YuQoOxdVYX/hRS5Id4OJ1ti5LMG\nGHQQEiefiMec3jKPmOlBOQQxvULvwNs9NBNJutiy3AaLxmM=\n-----END MESSAGE SIGNATURE-
emacs.FontBackend: xft
emacs.font: DejaVu Sans Mono-12
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
Xft.dpi: 96
#!/bin/bash
cd ~/workspace/opentxs
rm -rf build/
mkdir build
cd build
cmake .. -DPYTHON=1 -DSIGNAL_HANLDER=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_LIBRARY=/usr/lib64/libpython3.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.3m -DDOC_FULLGRAPHS=YES
#-DCMAKE_BUILD_TYPE=Debug
/home/jweiss/.ot/server_data/credentials:
total used in directory 24 available 5998956
drwx------. 3 jweiss jweiss 4096 Sep 29 09:25 .
drwxrwxr-x. 4 jweiss jweiss 4096 Sep 29 09:27 ..
drwx------. 2 jweiss jweiss 4096 Sep 29 09:25 6QkyGBCR248Mq0Do7AL0h4lInaSGfu4UK0KYqpvPEIg
-rw-rw-r--. 1 jweiss jweiss 1023 Sep 29 09:25 6QkyGBCR248Mq0Do7AL0h4lInaSGfu4UK0KYqpvPEIg.cred
Enter the ServerID for your server contract: testserver
Enter the Server User ID (the NymID of the Nym who signed the server contract): GeyVgjpwKvXvTQfgejh20brJUZyOQnVD0YM3wv1OS6a
Paste the cached key (ONLY the base64-encoded portion) below, from wallet.xml for that Nym.
Terminate with '~' on a line by itself.
CmAAAQCAAAD//wAAAAiVhjOZx+8cwgAAABAq9n2bhvPFT40iIniXRMHdAAAAIOqL
AMk0SR51lGraH57PMPoFopU4FZUFziZy+TPlYgc6AAAAECLydss9nmcXMqOXFbQW
7+w=
~
Paste the contents of the server Nym's certfile, including public/PRIVATE, below.
CreateMainFile: Error loading server credentials, or certificate and private key.
server main: Unable to find my own connect info (which SHOULD be in my server contract, BTW.) Perhaps you failed trying to open that contract? Have you tried the test password? ("test")
server main: Unable to find my own connect info (which SHOULD be in my server contract, BTW.) Perhaps you failed trying to open that contract? Have you tried the test password? ("test")
stack trace:
/usr/local/lib64/libopentxs-core.so.0 : opentxs::OTLog::logAssert(char const*, unsigned long, char const*)+0x97
/usr/local/lib64/libopentxs-server.so.0 : opentxs::MessageProcessor::MessageProcessor(opentxs::ServerLoader&)+0x83
opentxs-notary : main()+0x125
/lib64/libc.so.6 : __libc_start_main()+0xf5