Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    sorabot
    @sorabot
    Foo bar via telegram
    Got it. Thank you!
    sorabot
    @sorabot
    Jase White via telegram
    𝑾𝒉𝒐 π’Œπ’π’†π’˜ 𝑰 𝒄𝒐𝒖𝒍𝒅 π’Žπ’‚π’Œπ’† 𝒔𝒖𝒄𝒉 π’Žπ’π’π’†π’š π’Šπ’ 𝒂 𝒔𝒉𝒐𝒓𝒕 π’‘π’†π’“π’Šπ’π’… 𝒐𝒇 π’•π’Šπ’Žπ’†? π‘Ύπ’Šπ’•π’‰ π’ƒπ’Šπ’π’‚π’“π’š π’π’‘π’•π’Šπ’π’ 𝒕𝒓𝒂𝒅𝒆 𝑰 π’˜π’‚π’” 𝒂𝒃𝒍𝒆 𝒕𝒐 𝒆𝒂𝒓𝒏 $2,800 π’Šπ’ 72𝒉𝒐𝒖𝒓𝒔 π’˜π’Šπ’•π’‰ 𝒋𝒖𝒔𝒕 $300. 𝑨𝒍𝒍 π’•π’‰π’‚π’π’Œπ’” 𝒕𝒐 𝑴𝒓 @WilkinsElliot. 𝑻𝒓𝒂𝒅𝒆 π’˜π’Šπ’•π’‰ π’‰π’Šπ’Ž 𝒂𝒏𝒅 π’šπ’π’– π’˜π’Šπ’π’ 𝒂𝒍𝒔𝒐 𝒆𝒂𝒓𝒏 π’šπ’π’–π’“ π’‘π’“π’π’‡π’Šπ’•.
    @WilkinsElliot
    https://t.me/joinchat/XLb9HkOa-nA4N2Nk
    sorabot
    @sorabot
    Foo bar via telegram
    Photo
    Hi,
    I have a question regarding this healthcheck plan. Is it the gRPC healtch check protocol?
    sorabot
    @sorabot
    Juan Pablo Ramirez via telegram
    Good Morning to all, I have a question regarding initial configuration for Irohad, all the samples conider that node0, and account has been created and passed into genesis block or configuration files.
    For a new start, how do I generate this keys ?
    sorabot
    @sorabot
    Juan Pablo Ramirez via telegram
    another question, is Iroha-v2 (I'm assuming that is rebuilt in Rust) ready for production environments?
    sorabot
    @sorabot
    Kuvaldini via telegram
    See folder example in source tree
    Kuvaldini via telegram
    There you ll find keys, and genesis.block
    Juan Pablo Ramirez via telegram
    I'm aware of that folder. My question is...if I want to start from Zero, how do I generate all those keys
    Kuvaldini via telegram
    Iroha2 is under development. Not ready for production. But usable for testing.
    Juan Pablo Ramirez via telegram
    Ok thank you
    sorabot
    @sorabot
    Kuvaldini via telegram
    Iroha-python is the best way to create keys and produce transactions for genesis.
    Iroha cli also works
    sorabot
    @sorabot
    Juan Pablo Ramirez via telegram
    Ok thank you
    sorabot
    @sorabot
    ethereal forwarded from Bitgame Official Channel via telegram
    https://twitter.com/BitgameGlobal/status/1430090127586463746
    sorabot
    @sorabot

    Yasir via telegram
    Hi! I have a question. When we do batch transactions in python, we do batch meta by iroha.batch([tx1,tx2],atomic=True)

    This iroha instance is based on only 1 user however documentation says that batches can have transactions from different users. So how would this work in that case?

    Yasir via telegram
    @liralemur Can you guide?
    sorabot
    @sorabot
    Sara via telegram
    Hello. I'm not sure, can only send you an article I wrote about batches with the help of the team if you haven't seen it yet
    Yasir via telegram
    I have seen it...
    Sara via telegram
    Ok, I see. By users you mean users or clients?
    Yasir via telegram
    Users. So when we start a transaction, we initialize Iroha instance and give it an account_id
    Yasir via telegram
    So for a batch with transactions from two different users, whose account_id to set when defining batch? [iroha.batch(txs,atomic=True)]
    Yasir via telegram
    I am testing it and it is rejecting transactions when sent in batch
    sorabot
    @sorabot
    baziorek via telegram
    If You want to have really good example, which helped many people with understanding batch transactions, her is code:
    https://github.com/iptelephony/jubilant-engine
    Yasir via telegram
    It doesn't have a batch transaction example
    sorabot
    @sorabot
    Sara via telegram
    Ok, so I gathered some expert knowledge and will try to convey it further ) so, here's an example like what you want to do: https://github.com/hyperledger/iroha-python/blob/main/examples/batch-example.py#L153
    There Bob signs his transaction later, but it is not an issue if called ic.sign_transaction for Bob's transaction with his private key.

    Sara via telegram
    That's one thing.
    Another is the general way batches are made:
    1) txs - transactions - can be made by different users, that's definitely not an issue
    2) you create unsigned transactions by different users
    3) add them batchmeta (basically making them a batch)
    4) sign them with the respective signatures of the creator users - transaction by Alice with Alice's key, Bob's transaction with Bob's key etc
    5) send the signed transactions together to listTorii

    That's the general concept

    Sara via telegram
    Hope this helps, Yasir
    sorabot
    @sorabot
    Yasir via telegram
    Thanks. Can we do createaccount and a transaction FROM that new account in same batch?
    Bogdan Mingela via telegram
    Sure, why not
    Yasir via telegram
    Its being rejected if I do them in a batch but working fine as two separate transactions
    Yasir via telegram
    Or may be I am doing something wrong
    Bogdan Mingela via telegram
    Please share the relevant code sample, we couldn't determine the cause otherwise
    sorabot
    @sorabot
    Yasir via telegram
    Please check if it makes sense. Basically I am trying to have NFT facility within iroha so creating account and asset and then setting details of that account to store NFT based specifics. tx1 does go fine but tx2 gets rejected.
    sorabot
    @sorabot
    Bogdan Mingela via telegram
    do you use this method to send them? https://github.com/hyperledger/iroha-python/blob/41a724b3f3f21921ad455d39fb959f45c98fe986/iroha/iroha.py#L400
    could you also share the Iroha log output when you run the code provided?
    sorabot
    @sorabot
    Piotr Pawlow via telegram
    Hi, as I am one of the half-time mentees, and most of my PRs are accepted (hyperledger/iroha#1300 and others) and the rest of my intern will still last for two months, I would like to ask if I can participate in developing Iroha for this time? It would be ideally if I could develop iroha1.2.x or try some things connected with iroha2. I consulted it with my mentor @baziorek , he approves. I hope for some interesting propositions.
    sorabot
    @sorabot

    baziorek via telegram
    True, he has two Approves for PR: hyperledger/iroha#1300 from two members from Iroha Core Team, so should he correct something more in the PR, or it can be merged?
    His work, according to the project description: https://wiki.hyperledger.org/display/INTERN/Extend+HL+Iroha+queries+with+optional+arguments is to extend:
    After merging the PR it looks like his work for Iroha 1 Core would be finished (his work was to extend GetAccountTransactions, GetAccountAssetTransactions and GetPendingTransactions for Postgres and RocksDB. The remaining parts would be to merge PR to Iroha client libraries: python, java, nodeJS, iOS

    CC: @liralemur

    sorabot
    @sorabot

    baziorek via telegram
    True, he has two Approves for PR: hyperledger/iroha#1300 from two members from Iroha Core Team, so should he correct something more in the PR, or it can be merged?
    His work, according to the project description: https://wiki.hyperledger.org/display/INTERN/Extend+HL+Iroha+queries+with+optional+arguments is to extend:

    1. GetAccountTransactions 2.GetAccountAssetTransactions
      `3.GetPendingTransactions

    `1 and 2 was already merged for Postgres, and it looks like Iroha Core Team used the code for RocksDB, so it done. The last missing part for Iroha Core Code is the PR #1300, which is already approved. So after merging the only missing parts would be to merge PRs for Iroha client libraries: python, java, nodeJS, iOS (PRs for python, nodeJS and ready to merge).

    After that he would finish entire internship project, so the question for Iroha 2 team - should be something connected with the internship project (filtering transactions by time range) added to Iroha 2?

    CC: @liralemur

    Sara via telegram
    Hello Gregorz and Piotr!

    It's great that you are ready to work on something else! It's night in Europe now but in the morning I'll ping Iroha 2 team members here (if they won't check the chat before that) and I'm sure we will find something interesting for you to tackle!

    About merge - I'd wait for Ivan's approval (I don't feel comfortable tagging him at night too, but I will in the morning) as he's I think the ruler of merges these days as we've been having some CI issues.

    sorabot
    @sorabot
    Sandy Kristiawan via telegram
    Hello, is there any JS query API to get all domain or specific domain name that exists in the system? Thank you.
    sorabot
    @sorabot
    baziorek via telegram
    Hello,
    According to documentation: https://iroha.readthedocs.io/en/support-1.2.x/develop/api.html there is no direct way. You can do its in really slow and hard way with: https://iroha.readthedocs.io/en/support-1.2.x/develop/api/queries.html#get-block query
    Sandy Kristiawan via telegram
    Okay. Thanks for the answer! :D
    sorabot
    @sorabot

    Juan Pablo Ramirez via telegram
    Hello, I finally manage not only to compile but to run cli and irohad, I will share a readme later, facing the fact that there is many changes that are not documented such as database creation externally, among others.

    Finally following certain gitter conversations I found the broken links to migration tools, and continuing to browse I found iroha-state-migration-tool repository and manage to create the desire database.

    Now, after that, this error keeps appearing :

    irohad: ../irohad/ametsuchi/impl/mutable_storage_impl.cpp:152: virtual iroha::expected::Result<iroha::ametsuchi::MutableStorage::CommitResult, std::__cxx11::basic_string<char> > iroha::ametsuchi::MutableStorageImpl::commit(iroha::ametsuchi::BlockStorage&) &&: Assertion `ledgerstate' failed.
    [1] 181078 abort (core dumped) ./irohad --config irohad-config.json --genesis_block genesis.block node0

    when I run:
    ./irohad --config irohad-config.json --genesis_block genesis.block --keypair_name node0 --drop_state

    with this genesis.block

    {
    "blockV1": {
    "payload": {
    "transactions": [{
    "payload": {
    "reducedPayload": {
    "commands": [{
    "createRole": {
    "roleName": "admin",
    "permissions": ["can_add_peer", "can_add_signatory", "can_create_account", "can_create_domain", "can_get_all_acc_ast", "can_get_all_acc_ast_txs", "can_get_all_acc_detail", "can_get_all_acc_txs", "can_get_all_accounts", "can_get_all_engine_receipts", "can_get_all_signatories", "can_get_all_txs", "can_get_blocks", "can_get_roles", "can_read_assets", "can_remove_signatory", "can_set_quorum"]
    }
    }, {
    "createRole": {
    "roleName": "user",
    "permissions": ["can_add_signatory", "can_get_my_acc_ast", "can_get_my_acc_ast_txs", "can_get_my_acc_detail", "can_get_my_acc_txs", "can_get_my_account", "can_get_my_engine_receipts", "can_get_my_signatories", "can_get_my_txs", "can_grant_can_add_my_signatory", "can_grant_can_remove_my_signatory", "can_grant_can_set_my_account_detail", "can_grant_can_set_my_quorum", "can_grant_can_transfer_my_assets", "can_receive", "can_remove_signatory", "can_set_quorum", "can_transfer"]
    }
    }, {
    "createRole": {
    "roleName": "money_creator",
    "permissions": ["can_add_asset_qty", "can_create_asset", "can_receive", "can_transfer"]
    }
    }, {
    "createDomain": {
    "domainId": "dustnet",
    "defaultRole": "user"
    }
    }, {
    "createAsset": {
    "assetName": "coinOne",
    "domainId": "dustnet",
    "precision": 4
    }
    }, {
    "createAccount": {
    "accountName": "admin",
    "domainId": "dustnet",
    "publicKey": "d5c6565a5d46f510bce88222c828b844b67f25171a81c811fb08bdd3b2df0b62"
    }
    }, {
    "createAccount": {
    "accountName": "jramirez",
    "domainId": "dustnet",
    "publicKey": "048ad435aa570df48420350b178c54c886bb9f7a417c2f8bcfa177401670b34d"
    }
    }, {
    "appendRole": {
    "accountId": "admin@dustnet.co",
    "roleName": "admin"
    }
    }, {
    "appendRole": {
    "accountId": "admin@dustnet.co",
    "roleName": "money_creator"
    }
    }],
    "quorum": 1
    }
    }
    }],
    "txNumber": 1,
    "height": "1",
    "prevBlockHash": "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
    }
    }
    }

    and this configuration file

    Juan Pablo Ramirez via telegram
    {
    "block_store_path" : "/tmp/block_store/",
    "torii_port" : 50051,
    "internal_port" : 10001,
    "pg_opt" : "host=localhost port=5432 user=postgres password=mysecretpassword",
    "max_proposal_size" : 10,
    "proposal_delay" : 5000,
    "vote_delay" : 5000,
    "mst_enable" : false,
    "mst_expiration_time" : 1440,
    "max_rounds_delay": 3000,
    "stale_stream_max_rounds": 2
    }

    Can someone help me to undestand why irohad is core dumping?

    Kuvaldini via telegram
    It fails on assertion.
    Juan Pablo Ramirez via telegram
    Yes ... But database is completely empty, nothing is running there , brand new schema ...what could be the reason for assertion error
    Kuvaldini via telegram
    Likes it fails to reindex blockstore.
    Kuvaldini via telegram
    what version did you build?
    Kuvaldini via telegram
    branch?
    Juan Pablo Ramirez via telegram
    Main
    Kuvaldini via telegram
    please try support/1.2.x