import keychain
import json
import binascii

wallets = [
    testlib.Wallet("5JesPiN68qt44Hc2nT8qmyZ1JDwHebfoh9KQ52Lazb1m1LaKNj9",
                   100000000000),
    testlib.Wallet("5KHqsiU9qa77frZb6hQy9ocV7Sus9RWJcQGYYBJJBb2Efj1o77e",
                   100000000000),
    testlib.Wallet("5Kg5kJbQHvk1B64rJniEmgbD83FpZpbw2RjdAZEzTefs9ihN3Bz",
                   100000000000),
    testlib.Wallet("5JuVsoS9NauksSkqEjbUZxWwgGDQbMwPsEfoRBSpLpgDX1RtLX7",
                   100000000000),
    testlib.Wallet("5KEpiSRr1BrT8vRD7LKGCEmudokTh1iMHbiThMQpLdwBwhDJB1T",
                   100000000000),
    testlib.SegwitWallet(
        "5JfHdMq9XnZ9mwW5H6LsfVCn9u6iGAj2FCVYtfhcHn72Tphvm5P"),
    testlib.SegwitWallet(
        "5JPrkpfLT3rDf1Lgm1DpA2Cfepwf9wCtEbDx1HSEdd4J2R5YMxZ"),
    testlib.SegwitWallet(
        "KzdAGxpye21RkoP3tH8Qwow4eQHGEii7hwQjpsq9j13bqmoomMtS"),
    testlib.SegwitWallet(
        "L1g7Z8WBo4p7NH9D2zvYQ3d73DyfWUMvzZSUR818A7EdDUagzRxm"),
]

consensus = "17ac43c1d8549c3181b200f1bf97eb7d"


def scenario(wallets, **kw):

    print '\nactivating segwit\n'
import testlib
import virtualchain

# activate multisig
"""
TEST ENV BLOCKSTACK_EPOCH_1_END_BLOCK 682
TEST ENV BLOCKSTACK_EPOCH_2_NAMESPACE_LIFETIME_MULTIPLIER 1
"""

wallets = [
    testlib.Wallet("5JesPiN68qt44Hc2nT8qmyZ1JDwHebfoh9KQ52Lazb1m1LaKNj9",
                   100000000000),
    testlib.Wallet("5KHqsiU9qa77frZb6hQy9ocV7Sus9RWJcQGYYBJJBb2Efj1o77e",
                   100000000000),
    testlib.SegwitWallet(
        "5JfHdMq9XnZ9mwW5H6LsfVCn9u6iGAj2FCVYtfhcHn72Tphvm5P"),
    testlib.SegwitWallet(
        "5JPrkpfLT3rDf1Lgm1DpA2Cfepwf9wCtEbDx1HSEdd4J2R5YMxZ"),
]

consensus = "17ac43c1d8549c3181b200f1bf97eb7d"


def scenario(wallets, **kw):

    print '\nactivating segwit\n'

    virtualchain.set_features("segwit", True)

    print '\nsegwit state: {}\n'.format(virtualchain.get_features('segwit'))