Skip to content

Instantly share code, notes, and snippets.

View dexX7's full-sized avatar

dexX7

View GitHub Profile
--- Building for precise amd64 ---
Stopping target if it is up
Making a new image copy
lxc-start: unrecognized option '--version'
Usage: lxc-start --name=NAME -- COMMAND
lxc-start start COMMAND in specified container NAME
Options :
-n, --name=NAME NAME for name of the container
--- !omap
- out_manifest: ! 'b0baae4b1666f45d39c9c20f0ba77db94c0d602f867419622cb6f0607d8d92df omnicore-0.0.9.99-dev-win32-setup.exe
0d4d9900ebf5352b67b4e07f7da6a00c1e7795bfdf4f3d02060b96db8ddfee43 omnicore-0.0.9.99-dev-win32.zip
c8f8c98d5963eaebff9ff9cc0b6750173ca6d671274bc25a8c049b1b773f4944 omnicore-0.0.9.99-dev-win64-setup.exe
5d23ba79194d6e886c76e161f7dee76b0757335c205a2db64ad111d03cc67e36 omnicore-0.0.9.99-dev-win64.zip
e223b6cf10511583a413d7abed893e58f7bceb208f4af0cb3de17183a3e95b46 src/omnicore-0.0.9.99-dev.tar.gz
'
- in_manifest: ! 'd0192624832a23fa11627811ce3685e38d4799d57c10e960d678f671e806423e omnicore-win-0.10-desc.yml
git:01d49a6845a05dc5a356e09f9878f6c3e8dd3c7a omnicore'
- base_manifests: !omap
@dexX7
dexX7 / dex_no_fp.diff
Created August 21, 2015 15:44
DEx payments with plain integers
diff --git a/src/omnicore/dex.cpp b/src/omnicore/dex.cpp
index ff4cb0e..74d7381 100644
--- a/src/omnicore/dex.cpp
+++ b/src/omnicore/dex.cpp
@@ -10,6 +10,7 @@
#include "omnicore/errors.h"
#include "omnicore/log.h"
#include "omnicore/omnicore.h"
+#include "omnicore/rules.h"
  • Build Omni Core
  • Start with -startclean -omniseedblockfilter=0 -omnidebug=consensus_hash_every_block
  • Extract consensus hash from omnicore.log
  • Add consensus hash to src/omnicore/rules.cpp
This file has been truncated, but you can view the full file.
import random
txs = []
txs.append('e6514135c9cdb5b79195e3a2c990f528180e6cc89af4a7fd932c8f5f687ac353')
txs.append('702f2aa0c88246a09e6fea47941320fb1453f8bfe81d81047c3f9b84eedd2520')
txs.append('5a9d0c7d6c1c027207fd4fff10cb891bdc7e23d4d0ecc468cb01ebe78239a4bd')
txs.append('8c302734ebdfa87f16134dfc4da057646ada7a58925fd8346ec2c3869c076fff')
txs.append('7f0788520cafc332308f37f66ea3c9bd5226f566d7497f43791a18fcfd1e484e')
txs.append('c0a6ba6687378af0e4ff5d675b8d4bb383017c7b05b0f0d0d77d381252e0ae5f')
txs.append('ad8d797c75cfa77b6b9753308951431cec6b1655634be1fdecd4ac337f50d590')
@dexX7
dexX7 / 1_context.md
Last active April 13, 2019 11:24
Token based 2-of-3 multisig arbitration with Omni Core

Context:

  • Let Alice be the seller of an item or service, and Bob the buyer

  • Trent is a service operator, who has the role of an arbitrator

  • Alice wants to deal in TetherUSD

  • Bob's address is mkXZ1FYBNuvrqMEE2PLzJkS39T6w7CouFH, which is funded with TetherUSD

static std::set<int> GetBlockList()
{
int64_t nTimeStart = GetTimeMicros();
std::set<int> blockList;
blockList.insert(252317);
blockList.insert(252320);
blockList.insert(253056);
blockList.insert(253058);
blockList.insert(253062);
@dexX7
dexX7 / gsign_a_purpose.md
Last active September 8, 2015 10:55
Signing of Omni Core build results via Gitian

Release binaries for Omni Core are deterministically build via Gitian.

https://gitian.org

To compare build results of maintainers, and contributors, gsign, which is part of Gitian, is used to create a "fingerprint" of the binaries, as well as the dependencies used during the build process.

The "fingerprints" are cryptographically signed via GPG and published to a dedicated GitHub repository:

https://github.com/OmniLayer/gitian.sigs

Update documentation:

  • Move old release notes into src/omnicore/doc/release-notes
  • Write release notes to src/omnicore/doc/release_notes.md
  • Update src/omnicore/README.md

Update version:

  • Set _CLIENT_VERSION_IS_RELEASE in configure.ac to true
  • Update _OMNICORE_VERSION_[MILESTONE|MAJOR|MINOR|PATCH|STATUS] in configure.ac
@dexX7
dexX7 / rpc_help
Created July 6, 2015 23:22
Omni Core 0.0.10 RPC help descriptions preview
$ ./src/omnicore-cli help getactivecrowdsales_MP
getactivecrowdsales_MP
Lists currently active crowdsales.
Result:
[ (array of JSON objects)
{
"propertyid" : n, (number) the identifier of the crowdsale
"name" : "name", (string) the name of the tokens issued via the crowdsale