Skip to content

Instantly share code, notes, and snippets.

View dexX7's full-sized avatar

dexX7

View GitHub Profile
http://builder.bitwatch.co/?version=65535&type=65535&text=313a3330393630303a303a5468697320696e666f20616c657274206973206e6f742076657273696f6e20746172676574656420616e64206578706972657320617420626c6f636b20686569676874203330393630302e00&sender=mvbtvhJycmKYVkaxHWgpuidyqFMnf6MEXH
2014-11-21 13:28:06 ____________________________________________________________________________________________________________________________________
2014-11-21 13:28:06 parseTransaction(block=309579, 2014-11-21 14:35:23 idx= 4); txid: becc55dd27da89e8395e7b2ca4aa46e145f3fba15ee6462d61790a68d819eb00
2014-11-21 13:28:06 version: 65535, Class B
2014-11-21 13:28:06 type: 65535 (* unknown type *)
2014-11-21 13:28:06 !!! interpretPacket() returned -9000 !!!
2014-11-21 13:28:06 BLOCK: 309579 =txid: becc55dd27da89e8395e7b2ca4aa46e145f3fba15ee6462d61790a68d819eb00 =fee: 0.00010000
2014-11-21 13:28:06 sender: mvbtvhJycmKYVkaxHWgpuidyqFMnf6MEXH ; receiver: mvbtvhJycmKYVkaxHWgpuidyqFMnf6MEXH
2014-11-21 13:28:06 pkt: 0000ffff313a33303
@dexX7
dexX7 / 20141120-MetaDexPlanTest
Created November 20, 2014 14:24
mastercore-rpc-tests: MetaDexPlanTest
Tested with:
https://github.com/mastercoin-MSC/mastercore/tree/4ff017f95e2a6d419d47e2fbd06d55b2fea47e35
Note:
Amounts in "offering ..." info is shown as divisible amount, even if it's indivisible.
~/mastercore/qa/mastercore-rpc-tests$ python test_meta_dex_plan.py
Initializing test directory /tmp/test1ktfOs
Sending 0E-8 BTC from moSm3g3iLt87K1eitN1pii5R8h3XYXE3kn to moSm3g3iLt87K1eitN1pii5R8h3XYXE3kn with a fee of 0.00010000 BTC
Sending 50.00000000 BTC from moSm3g3iLt87K1eitN1pii5R8h3XYXE3kn to mgEekqYF8PPTW9TRBhZSGZjAKLXpv8NtKY with a fee of 0.00010000 BTC
@dexX7
dexX7 / 20141119-MetaDexPlanTest
Created November 19, 2014 02:16
mastercore-rpc-tests: MetaDexPlanTest
Tested with:
https://github.com/mastercoin-MSC/mastercore/tree/4ff017f95e2a6d419d47e2fbd06d55b2fea47e35
Note:
Amounts in "offering ..." info is shown as divisible amount, even if it's indivisible.
~/mastercore/qa/mastercore-rpc-tests$ python test_meta_dex_plan.py --omitstdout --verbose
Initializing test directory /tmp/test_cHgB7
Sending 0E-8 BTC from msnGTKSNLSqBwRz655bqsbUeELfStzSEa2 to msnGTKSNLSqBwRz655bqsbUeELfStzSEa2 with a fee of 0.00010000 BTC
Sending 50.00000000 BTC from msnGTKSNLSqBwRz655bqsbUeELfStzSEa2 to msoeKwK1pHYsxTomiSw843fR8AdPmskaGc with a fee of 0.00010000 BTC
@dexX7
dexX7 / 20141116-InvalidMetaDexTransactionsTest
Created November 16, 2014 14:48
mastercore-rpc-tests: InvalidMetaDexTransactionsTest
Tested with:
https://github.com/mastercoin-MSC/mastercore/tree/94b65c2d55eebb3663ae129552b94176d16967fa
Note:
Amounts in "offering ..." info is shown as divisible amount, even if it's indivisible.
~/mastercore/qa/mastercore-rpc-tests$ python test_invalid_dex_txs.py --omitstdout --verbose
Initializing test directory /tmp/testnZvutM
Sending 0E-8 BTC from muNn3rHPfxtxiwiGvdk7wZeRVYSQP1Wize to muNn3rHPfxtxiwiGvdk7wZeRVYSQP1Wize with a fee of 0.00010000 BTC
Sending 50.00000000 BTC from muNn3rHPfxtxiwiGvdk7wZeRVYSQP1Wize to mkbWxtzhJzPRUrZ8ZfdQtLS6ARDPb2Gce2 with a fee of 0.00010000 BTC
@dexX7
dexX7 / leveldb_dump.py
Created November 2, 2014 23:46
Python LevelDB debug dumper
#!/usr/bin/env python
import binascii
import sys
import leveldb
def b2x(b):
"""Convert bytes to a hex string"""
if sys.version > '3':
return binascii.hexlify(b).decode('utf8')
@dexX7
dexX7 / internal-p2sh-multisig-txs.java
Created October 5, 2014 00:03
Using Master Core to create a P2SH multisig wallet and send some tokens
goals:
- create a 1-of-3 script hash wallet with wallet keys
- send some tokens to the p2sh wallet
- send some tokens back
---
// let's see which addresses are availabel at all:
mastercore-cli listaddressgroupings
@dexX7
dexX7 / gist:b46f0fea46b9ea881142
Last active June 24, 2020 07:19
Master Core: Gitian build instructions for Windows
Embedded proof of verification
Current situation:
- Mastercoin is balance based
- Advanced system states exist (ongoing crowdsales, accepted orders, ...)
- Clients reconstruct the view of system by verifying all transactions
starting at Exodus according to a client side set of rules
- Mastercoin transactions are a subset of all Bitcoin transactions
@dexX7
dexX7 / 1KHfLixa2idRnZXMUfEisBati1vpywaH6E.csv
Created April 25, 2014 01:36
Display transactions which send Bitcoin to a specific address
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
blocktime;blockheight;position;txid;vout;amount;sender
1398115251;297047;94;70ddc412ccae8c8c1659e71597f3971240b0e03d195799ed83235e2f52a3cf25;0;0.007;13KQXZwHFk3DCqDZG45qqaJzn6uuJPGAZS
1398155998;297117;1;b8ef7515dd6d29243f544766876934216e302e78732f44df9e5fef4cbc0739bc;1;15;186y2sHKTzmTaAvbM543Vqw9zw9dtaneiN
1398155998;297117;18;a165174f5876eb43bf5ef0c6961d99420979fc7919eda9863dea9745ae33fac9;0;118;1DjAmmS6iSg5Xe6wYz37CAMAdvGTQoijiK
1398155998;297117;24;e489cad48a8473f496bbcb17a503118a682804a90a11a06304e9b004d8b66310;0;6.3;1EB6Nm4JmS7mbeJ8Yv7bycbMDvgpWq9uvN
1398155998;297117;36;cf54e2b39f28e2cf12bce49db8de81c32584ab5aab00a14f39f5580eccf65409;0;1;1KJwKxZ4U8PnaoGgGBTBZZ4GkM3ACyL3oq
...
Full data:
http://www.bitwatch.co/msc/1KHfLixa2idRnZXMUfEisBati1vpywaH6E.csv
[{
"txid": "98419d8b3056ce50aa63d1f464555e038ae517996ac6ec13bfd8c26689f5bece",
"data": [{
"datahex": "000000000001000000012a05f200",
"version": 0,
"type": "Simple Send (0)",
"input": "1NqkqJkGCA7HJkBQqJrRvJCDCLAnQndw7",
"reference": "1MaStErt4XsYHPwfrN9TpgdURLhHTdMenH",
"currency": "Mastercoin (1)",
"amount": 50.0