hyperledger-sawtooth

Sawtooth Transaction error: “Tried to set unauthorized address”

两盒软妹~` 提交于 2021-02-19 05:28:19
问题 I am trying to write my custom Transaction processor. I am writing for simple Account class class Account: def __init__(self, name, ac_number, balance): self.name = name self.ac_number = ac_number self.balance = balance My TP is working fine for a single account. Now I want to improve it for multiple accounts. To get a different state for each account number I have changed _'_get_account_address_' function. I am following @danintel 's Cookiejar and XO_python projects. I am following xo code

Sawtooth Transaction error: “Tried to set unauthorized address”

跟風遠走 提交于 2021-02-19 05:28:10
问题 I am trying to write my custom Transaction processor. I am writing for simple Account class class Account: def __init__(self, name, ac_number, balance): self.name = name self.ac_number = ac_number self.balance = balance My TP is working fine for a single account. Now I want to improve it for multiple accounts. To get a different state for each account number I have changed _'_get_account_address_' function. I am following @danintel 's Cookiejar and XO_python projects. I am following xo code

How Hyperledger Sawtooth take care of infinite/endless loops?

与世无争的帅哥 提交于 2020-06-13 05:28:30
问题 I could not find anything concrete about how Hyperledger Sawtooth handles the problem of infinite loops created by mistake or voluntarily by the developer (Only some issues regarding the IntKey transaction family Intkey workload command run in endless loop with wrong URL). I am sure that on Hyperledger Fabric the concept of the timeout of chain code execution avoids the creation of infinite loops, but which mechanism is used in Hyperledger Sawtooth ? Thanks! 回答1: The best thing to do is to

Cannot connect intkey Tp to sawtooth test network

我与影子孤独终老i 提交于 2020-02-23 04:17:12
问题 I am trying to set up a multi node sawtooth netwrok using sawtooth 1.2. I tested the docker compose file with the default intkey containers and it worked. But when I tried to set up intkey using the NodeJs SDK and tried to connect to the validator, the connection is not responded. Also when I try to browse the http://localhost:8008/batches, the url is unreachable. docker-compose file version: "2.1" volumes: poet-shared: services: shell: image: hyperledger/sawtooth-shell:chime container_name:

Hyperledger Sawtooth: Transaction processor in Javascript

雨燕双飞 提交于 2019-12-24 05:22:27
问题 I am trying to implement a transaction processor in javascript SDK based on the following example https://github.com/hyperledger/sawtooth-core/blob/master/sdk/examples/intkey_javascript/index.js Here is my code to run a transaction processor in javascript SDK //validator public key const validatorAddress = '024c512a6d66917d7d00f52fa299a88594915dab27bddbcd2a80154984d7948c3c'; const IntegerKeyHandler = require('./handler'); const startProcessor = function startProcessor(){ const

Hyperledger Sawtooth: Transaction processor in Javascript

 ̄綄美尐妖づ 提交于 2019-12-24 05:22:07
问题 I am trying to implement a transaction processor in javascript SDK based on the following example https://github.com/hyperledger/sawtooth-core/blob/master/sdk/examples/intkey_javascript/index.js Here is my code to run a transaction processor in javascript SDK //validator public key const validatorAddress = '024c512a6d66917d7d00f52fa299a88594915dab27bddbcd2a80154984d7948c3c'; const IntegerKeyHandler = require('./handler'); const startProcessor = function startProcessor(){ const

How is it possible for a Hyperledger Sawtooth Validator node to have 'number of peers greater than the maximum connectivity' in the Sawtooth Network?

主宰稳场 提交于 2019-12-24 03:44:18
问题 Below statement is from this documentation. The network component continues to perform a peer search if its number of peers is less than the minimum connectivity. The network component rejects peering attempts if its number of peers is equal to or greater than the maximum connectivity. Question: As the documentation says, number of peers is equal to or greater than the maximum connectivity, If a node is allowed to have a 'maximum number of peers', say N, how can the 'number of peers' be

How to get the transaction ID from Hyperledger Sawtooth

那年仲夏 提交于 2019-12-23 04:26:59
问题 When I am making a transaction with the JS sdk to my docker sawtooth node, I am getting a response which contains only a link which shows this data: { "data": [ { "id": "87be1095b29372fff3b46d4f0eb0f354514208d8ef612877bae0216e70d4931f302e2b2f3741d52e22acf92c7e3f3935775b503a43f45a7297d1ce5ad76b9bb2", "invalid_transactions": [], "status": "COMMITTED" } ], "link": "http://localhost:8008/batch_statuses?id

hyperledger sawtooth validator node permissioning issue

送分小仙女□ 提交于 2019-12-13 03:52:58
问题 permission_verifier] Chain head is not set yet. Permit all. client_handlers] Unable to get chain head from block store not getting what is happening here. Could someone help? 回答1: This error has been seen when the ownerships are wrong. Try setting ownership as follows: chown sawtooth:sawtooth /var/lib/sawtooth /var/lib/sawtooth/* Another possibility is you need to start the Sawtooth processes as user sawtooth . For example: sudo -u sawtooth sawtooth-validator -vv 来源: https://stackoverflow.com

Need clarification in documentation of Hyperledger Sawtooth Architecture Guide : Validator Peer to Peer (P2P) Network

安稳与你 提交于 2019-12-11 15:56:07
问题 I would like to understand the below statementS from this documentation. Part 1: The network component continues to perform a peer search if its number of peers is less than the minimum connectivity. The network component rejects peering attempts if its number of peers is equal to or greater than the maximum connectivity. Part 2: Even if maximum peer connections is reached, a network service should still accept and respond to a reasonable number of connections (for the purposes of other node