Skip to content

Instantly share code, notes, and snippets.

View dexX7's full-sized avatar

dexX7

View GitHub Profile
@dexX7
dexX7 / rpc_raw_simplesend.md
Last active June 30, 2018 03:58
Create raw Simple Send with Omni Core
@dexX7
dexX7 / activations_0.0.10.md
Last active January 6, 2016 11:26
Omni Core 0.0.10: Feature Activations I

Feature Id: 1

  • Activation block: 395000
  • Minimum version: 1000000
  • Payload: fffffffe0001000606f8000f4240
1) Create base transaction
@dexX7
dexX7 / release_plan-0.0.10_checklist.md
Last active November 22, 2015 20:32
Omni Core 0.0.10 release plan
  • Finalize Omni Core (2015-11-04)
  • Tag the release candidate on GitHub as "0.0.10-rc1" (2015-11-04)
  • Build and sign binaries via Gitian (2015-11-06)
  • Tag the second release candidate on GitHub as "0.0.10-rc2" (2015-11-11)
  • Build and sign binaries for second release candidate via Gitian (2015-11-11)
  • Upload release candidate binaries (2015-11-11)
  • Announce release candidate on "dev" mailing list (2015-11-11)
  • Discuss draft for download page
  • Publish blog post (2015-11-14)
  • Test and evaluate the release candidate
#!/usr/bin/env python3
import hashlib
import argparse
import sys
import time
import signal
import binascii
MICROSECONDS = 1000000.0
@dexX7
dexX7 / smaller_monospace.diff
Created October 8, 2015 15:11
RPC console with smaller Monospace font
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index 8917f77..5b330e1 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -243,6 +243,7 @@ QString HtmlEscape(const QString& str, bool fMultiLine)
if(fMultiLine)
{
escaped = escaped.replace("\n", "<br>\n");
+ escaped = escaped.replace(" ", "&nbsp;");
}

Setup:

  • regtest mode
  • txindex enabled
  • database from 0.10
  • there are a few blocks and transactions

chainstate:

42 a63a29c6e9d7c03c29fd9b64b758f94f5c0ddf46479f49ff4dfd30883e84aa15
@dexX7
dexX7 / API.md
Last active September 11, 2015 21:39 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@dexX7
dexX7 / gveryify_all.py
Created September 9, 2015 10:41
Python script to verify Gitian build results
#!/usr/bin/env python
import glob
import os
import subprocess
import sys
import yaml
yaml.add_constructor('!omap',
yaml.constructor.SafeConstructor.construct_yaml_omap)
@dexX7
dexX7 / 1_keygeneration.md
Last active October 27, 2016 22:44
Omni Core feature activation: key-generation

Features and new transaction types of Omni Core are activated remotely via specially crafted on-chain transactions, signed by a group of stakeholders.

The following guide shows how to generate a new key-pair, which is later used to sign activation transactions.

1. Start Omni Core (or Bitcoin Core)

Build or download Omni Core, or Bitcoin Core, and ideally in a presitine environment, start the client in mainnet mode (default). No blockchain synchronization or internet access is required.

Overview

Running 330 test cases...
calculateFundraiser: ---------------------------------
calculateFundraiser: amtTransfer = 3000000000
calculateFundraiser: bonusPerc = 6
calculateFundraiser: fundraiserSecs = 1407064860000
calculateFundraiser: currentSecs = 1407877014
calculateFundraiser: numProps = 3133700000000
calculateFundraiser: issuerPerc = 10
calculateFundraiser: totalTokens = 0
calculateFundraiser: weeks_sec_ = 604800