Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    sorabot
    @sorabot
    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
    sorabot
    @sorabot
    Kuvaldini via telegram
    Tomorrow it would be named RC 1.3
    Juan Pablo Ramirez via telegram
    Ok
    Juan Pablo Ramirez via telegram
    Let me try

    Kuvaldini via telegram

    1. docker pull ghcr.io/hyperledger/iroha-builder:support-1.2.x
    2. in container git clone github.com/hyperleder/iroha
    3. ./vcpkg/build_iroha_deps.sh
    4. cmake -Bbuild -DCMAKE_TOOLCHAIN_FILE=$PWD/vcpkg/scripts/buildsystems/vcpkg.cmake -GNinja
    5. cmake --build build
    6. ./build/bin/irohad ....

    WARN: wrote from head. There could be mistakes. Concept is right.

    sorabot
    @sorabot
    Kuvaldini via telegram
    U can docker cp build/bin/irohad to host and then to other containder (which does not build tools) and it should work.

    Kuvaldini via telegram
    And finally. Why to build yourself.

    docker run ghcr.io/hyperleder/iroha

    Juan Pablo Ramirez via telegram
    Thank you. I just like the independence .
    Let you know about the build
    sorabot
    @sorabot
    Kuvaldini via telegram
    No real need in iroha-builder it is just ubuntu-latest with cmake ninja gcc and other tools installed.
    sorabot
    @sorabot
    Juan Pablo Ramirez via telegram
    for the common example in main does not work btw.
    sorabot
    @sorabot
    koch forwarded from Airdrop Announcements via telegram
    https://t.me/MSTAirdrop
    👆Enter the main channel👆
    🚀 Airdrop MST
    Online account manager✈️:@MSTManager
    Claim for 60 pieces per account, 1.6U each
    MST circulation: 82 million pieces
    🎁50% of community users
    🎁15% of strategic investors
    🎁15% basic reserve
    🎁20% private placement/airdrop
    ✅ Join Airdrop: https://msttoken.com/index.html?586093a17894a1
    sorabot
    @sorabot
    Juan Pablo Ramirez via telegram
    So I manage to compile 1.2.x as you mention, same error is showing when I'm executing irohad
    Juan Pablo Ramirez via telegram
    [2021-08-27 15:54:38.629163330][I][Irohad/Storage/Storage/MutableStorageImpl]: Applying block: height 1, hash 26c071444189715ac29569e963206a9b9be6cfb8e90aa62b62f7a7e19ab6fc98
    [2021-08-27 15:54:38.633636146][E][Irohad/Storage/Storage/MutableStorageImpl]: AppendRole: 3 with extra info 'AppendRole: [Validation=0, creator=, target=admin@dustnet.co, role=admin]'
    irohad: ../irohad/ametsuchi/impl/mutable_storage_impl.cpp:138: virtual iroha::expected::Result<iroha::ametsuchi::MutableStorage::CommitResult, std::__cxx11::basic_string<char> > iroha::ametsuchi::MutableStorageImpl::commit(iroha::ametsuchi::BlockStorage&) &&: Assertion `ledgerstate' failed.
    [1] 265131 abort (core dumped) ./irohad --config irohad-config.json --genesis_block genesis.block node0
    sorabot
    @sorabot

    Sara forwarded from Hyperledger Iroha news via telegram
    🖖🏻 Hello there! Just a reminder about our community meeting (which will be in ~75 minutes)

    We will hear general project updates and see an internship presentation!
    One of this year's interns will present the great work they've completed.

    See you at 1PM CET: https://zoom.us/my/hyperledger.community.3
    Password: 475869

    sorabot
    @sorabot
    Kuvaldini via telegram
    What if you run irohad with config and genesis from ./example/
    sorabot
    @sorabot
    Sara forwarded from Hyperledger Iroha news via telegram
    Correction: there are going to be more than 1 presentation, so get ready for new exciting features implemented by interns this summer!
    sorabot
    @sorabot
    Sara via telegram
    https://zoom.us/my/hyperledger.community.3
    Password: 475869 - waiting for you here :)
    sorabot
    @sorabot
    Kuvaldini via telegram
    Please show full log
    sorabot
    @sorabot
    Mustard Lee via telegram
    but how many (limit)?
    sorabot
    @sorabot
    Juan Pablo Ramirez via telegram
    I copy the example genesis.block and it worked, I also replace with the testing information I needed and worked too.
    Is still uncertain what caused the core dump with the previous genesis file as I generate that using the iroha-cli.
    For now I will leave it alone and work on the "business" part of my implementation.
    Thank you @Kuvaldini for your support.
    sorabot
    @sorabot
    Kuvaldini via telegram
    I you could spend some more time on that failed assertion. I ask you to create an issue on GitHub with full log and steps to reproduce, i.e config, genesis, and cmdline options. The verision is reported in the early start to logfile.
    Kuvaldini via telegram
    And tag @kuvaldini
    Juan Pablo Ramirez via telegram
    Sure no problem we will collect the necessary data
    Kuvaldini via telegram
    That you. Your feedback is important for us.
    Iroha dev team.