Skip to content

Instantly share code, notes, and snippets.

View svasva's full-sized avatar

Vitaly A. Sorokin svasva

View GitHub Profile
Processing ZET mining took 0.824 seconds
Processing BOC mining took 1.387 seconds
Wed Aug 28 2013 14:36:44 GMT+0000 (UTC):audit: [email protected] client balance 1137521.8939538398
Wed Aug 28 2013 14:36:44 GMT+0000 (UTC):audit: [email protected] traded balance 8.516106394854221
** Smart Collections charged with MongoDB Oplog **
LISTENING
Wed Aug 28 2013 19:48:07 GMT+0000 (UTC):audit:ZET:longhorn client balance -8589.02767036
Wed Aug 28 2013 19:48:07 GMT+0000 (UTC):audit:ZET:longhorn traded balance -9159.136807339999
Wed Aug 28 2013 19:48:07 GMT+0000 (UTC):audit:ZET:longhorn held balance 0
Wed Aug 28 2013 19:48:07 GMT+0000 (UTC):audit:ZET:longhorn mining balance 19133.41377499002
[
{
"account" : "[email protected]",
"address" : "ZMyxhNLXmxnEiyMTyoELQEY7P1jHgWf3PU",
"category" : "receive",
"amount" : 1281.32206876,
"confirmations" : 14329,
"blockhash" : "00000000000c37871fc77d981fe78641140141fcae87e9d9f6c6cdea39c24fbe",
"blockindex" : 1,
"blocktime" : 1377478004,
Thu Aug 29 2013 11:51:54 GMT+0000 (UTC):audit:BTC:[email protected] client balance 4.97935707
Thu Aug 29 2013 11:51:54 GMT+0000 (UTC):audit:BTC:[email protected] traded balance -5.068823673393284
Thu Aug 29 2013 11:51:54 GMT+0000 (UTC):audit:BTC:[email protected] held balance 0
Thu Aug 29 2013 11:51:54 GMT+0000 (UTC):audit:BTC:[email protected] mining balance 0
Thu Aug 29 2013 11:51:54 GMT+0000 (UTC):audit:BTC:[email protected] total balance -0.0894666033932845
{
# network ports
"listen" : [
# HTTP JSON-RPC protocol, port 8337
{ "port" : 9012, "protocol" : "http-json" }
],
# database settings
"database" : {
"engine" : "mysql",
Fri Sep 06 2013 13:45:37 GMT+0000 (UTC):audit:ZET:[email protected] client balance -298745.93825382995
Fri Sep 06 2013 13:45:37 GMT+0000 (UTC):audit:ZET:[email protected] traded balance 284243.68352183
Fri Sep 06 2013 13:45:37 GMT+0000 (UTC):audit:ZET:[email protected] held balance 0.01
Fri Sep 06 2013 13:45:37 GMT+0000 (UTC):audit:ZET:[email protected] mining balance 14636.859722040015
Fri Sep 06 2013 13:45:37 GMT+0000 (UTC):audit:ZET:[email protected] current balance { balance: 134.59499004, held: 0.01 }
Fri Sep 06 2013 13:45:37 GMT+0000 (UTC):audit:ZET:[email protected] audit balance { balance: 134.59499004007193, held: 0.01 }
#include <Python.h>
#include "scrypt.h"
static PyObject *scrypt_getpowhash(PyObject *self, PyObject *args)
{
char *output;
PyObject *value;
#if PY_MAJOR_VERSION >= 3
PyBytesObject *input;
@svasva
svasva / node.c
Last active December 25, 2015 17:39
#include <node.h>
#include <v8.h>
#include "scrypt.h"
using namespace v8;
Handle<Value> Method(const Arguments& args) {
HandleScope scope;
String::AsciiValue value(args[0]->ToString());
char* output = (char*) malloc(32);
{
"account" : "",
"category" : "immature",
"amount" : 200.00000000,
"confirmations" : 17,
"blockhash" : "85432aaed4aa6836e4737197a7ff284cc4e82310d25433b4236e6c189df42bbb",
"blockindex" : 0,
"txid" : "64e59347f43b166d45948fafcd4164e16a964836ab0571f3266608df689ba533",
"time" : 1382267497
},
# util
script_to_pubkey: (pubkey) ->
b = []
if pubkey[..1] == '04'
b.push new Buffer([0x41])
else
b.push new Buffer([0x21])
b.push util.unhexlify(pubkey)
b.push new Buffer([0xAC])
return Buffer.concat(b)