maxonrow / maxonrow-go

Maxonrow Blockchain
https://www.maxonrow.com/
5 stars 6 forks source link

Reproduce random crashes. #90

Closed yenkhoon closed 4 years ago

yenkhoon commented 4 years ago
  1. Fork and clone the sdk repo. link below. https://github.com/yenkhoon/mxw-sdk-js

  2. After clone the repo, run commnad "npm i"

  3. copy below codes to paste in your env file which located in test/env.ts

'use strict';

interface Node {

    connection: {
        url: string,
        timeout: number
    },
    trace: {
        silent: boolean,
        silentRpc: boolean
    },
    chainId: string,
    name: string,
    airDrop: string,
    kyc: {
        provider: string,
        issuer: string,
        middleware: string
    },
    alias: {
        provider: string,
        issuer: string,
        middleware: string,
        feeCollector: string
    },

    fungibleToken: {
        provider: string,
        issuer: string,
        middleware: string,
        feeCollector: string,
    },

    nonFungibleToken: {
        provider: string,
        issuer: string,
        middleware: string,
        feeCollector: string,

    },
};

const localnet: Node = {

    connection: {
        url: "http://localhost:26657",
        timeout: 60000
    },

    trace: {
        silent: true,
        silentRpc: true
    },

    chainId: "maxonrow-chain",
    name: "mxw",
    airDrop: "gold damp garlic turn host harbor else bird wrestle quarter surround parrot fan naive burst effort impact hen aware step gym ribbon inform cost",
    kyc: {
        provider: "foot increase such wave plunge athlete gentle figure hub reunion transfer marriage rude license champion monkey fan balcony position birth onion circle hint cool",
        issuer: "brisk barrel dose panther slice album family math cup cute awesome mechanic pattern rack erupt enforce alcohol wolf boil autumn family avoid brother legal",
        middleware: "belt world purchase stick spare one music suggest dentist kit globe save snack sauce liquid face undo select ethics choose august rhythm cycle crucial"
    },
    alias: {
        provider: "frost anchor admit engage minute pony half half rival fiction radio oven pizza siren state virtual fiscal urge clap dentist captain pink viable strike",
        issuer: "have silly fat resemble radar viable evolve start side path later point wreck annual mesh shoulder attitude own label robot test gossip anxiety year",
        middleware: "snap youth depart side mail panel category human popular theme cotton receive club sell rebel matrix box opinion host sand oak century chair silk",
        feeCollector: "mxw123xwuat5h9x92w6vdtn4fl2l03t7d793qugxvc"
    },
    fungibleToken: {
        provider: "naive hire arctic injury camp twelve actor valid process voice return unusual glad hen ginger brisk clever solve toss expire type road blood green",
        issuer: "wreck fiber slice novel nurse guess plate oven cotton life thought tape addict thank frown ready rival walk dish short solution work arena nurse",
        middleware: "police toilet cupboard song blanket duty wrestle public bike cattle install page option spell scout crop pig answer access alarm gain fish absent pen",
        feeCollector: "mxw173qf9y2ae0cx8y07ez6qsl9k2gs2l5955hfc7x"
    },
    nonFungibleToken: {
        provider: "language indoor mushroom gold motor genuine tower ripple baby journey where offer crumble chuckle velvet dizzy trigger owner mother screen panic question cliff dish",
        issuer: "appear scale write grow tiger puppy trick kite exhibit distance target cliff coin silly because train matrix weather list chat stamp warfare hobby ocean",
        middleware: "guard loop tell accuse village list prevent sea dolphin weapon own track spike venue gun blind carry hawk weapon track rain amazing author eagle",
        feeCollector: "mxw1md4u2zxz2ne5vsf9t4uun7q2k0nc3ly5g22dne",

    }

};

const nodes: { [name: string]: Node } = { localnet };
 const nodeProvider: Node = localnet;

export {
    nodeProvider, nodes, localnet,
    Node
};
  1. run maxonrow test, afterwards run the localnet with debugger by the maxonrow test state.

  2. run the command in your sdk folder "npm run dist-test-multisig"

yenkhoon commented 4 years ago

@b00f @githubckgoh1439

githubckgoh1439 commented 4 years ago

Goh revise as below, by refer to YK info :

1.1 Clone base on this - https://github.com/yenkhoon/maxonrow-go/tree/multisig 1.2 Update this in validation.go under these : --1. case auth.MsgUpdateMultiSigAccount: --2. case auth.MsgTransferMultiSigOwner: --3. case auth.MsgDeleteMultiSigTx: --4. case auth.MsgSignMultiSigTx: -- with these code : [ groupAcc := app.accountKeeper.GetAccount(ctx, msg.GroupAddress) if groupAcc == nil { return sdkTypes.ErrInternal("MultiSig group address invalid.") }

]

2.1 Clone base on this SDK - https://github.com/yenkhoon/mxw-sdk-js 2.2 Update your env file which located in test/env.ts, as above YK given

  1. Start the localhost mxw-blockchain
  2. RUN this 'npm run dist-test-multisig' under SDK-project
b00f commented 4 years ago

@yenkhoon Can you reproduce this bug?

b00f commented 4 years ago

It looks this bug is not reproducible. I closed it for now.