blockchain

How exactly blockchain node switches to another chain?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 16:17:14
问题 AFAIK after block validation node runs all transactions in the block, changing the state (list of UTXOs) Let's imagine that at some point node realizes that it was on the wrong chain and there is longer chain available, which forked some blocks before. How does it make the switch? I imagine that it should run all transactions in reverse till the fork happened to restore the state and than replay all transactions in the blocks from the longer chain? Thanks! 回答1: Each node receives individual

Error while sending query request from client : No peer available to query

风流意气都作罢 提交于 2019-12-11 16:07:36
问题 I am getting the following error while sending query request from my client. FabricError: No peers available to query. Errors: ["Failed to connect before the deadline URL:grpcs://localhost:12051","Failed to connect before the deadline URL:grpcs://localhost:11051"]. Following is my the part of my connection-org3.json connection profile file "organizations": { "Org3": { "mspid": "Org3MSP", "peers": [ "peer0.org3.bc4scm.de", "peer1.org3.bc4scm.de" ], "certificateAuthorities": [ "ca.org3.bc4scm

Addition of an organization to existing network without using CLI container

余生颓废 提交于 2019-12-11 15:46:04
问题 Hi I have been following the tutorials in youtube it uses CLI container to add an org. Since using CLI container is not recommended to have in production environment how to add an org into the existing network withput using cli container 回答1: the following tutorial from the IBM developer works, should help you further for the moment: IBM Developer works description of configtxlator tool At short: extract current config from genesis block Convert to human readable format Modify and do your

Hyperledger fabric authentication

你离开我真会死。 提交于 2019-12-11 15:29:00
问题 I am developing a blockchain network using Hyperledger Fabric (1.4) and I wanted to know if there's any User authentication mechanism for Fabric. For composer-rest-server there's passport but for fabric, I can't seem to find one. 回答1: The main authentication mechanism in Hyperledger Fabric are Membership Service Providers (MSP). You set these up in parallel to the blockchain and can connect them to LDAP, for example. For authentication a MSP issues a certificate for a user's public key, which

In the oo7 Substrate UI, Alice has zero funds

一笑奈何 提交于 2019-12-11 15:15:24
问题 In the Substrate-UI using the Bonds library (oo7), it shows that "Alice" has zero funds on a development chain. I also notice that some accounts are labeled as ed25519 and other are sr25519 . How can I repair this and gain access to the correct Alice? 回答1: Recently, Substrate changed the default cryptography for accounts and transactions signing from ed25519 to sr25519 . Depending on what combination of software you are using (node, UI, etc...) and what local storage items you have stored

BlockChain: Private block chain technologies [closed]

眉间皱痕 提交于 2019-12-11 14:40:03
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . As far as i understand, private block chains are built for an enterprise or a group of organizations. While i am trying to explore, i came across few technologies like Hyperledger fabric, OpenChain, multiChain. What are the technologies using which a private Block Chain can be built

Hyperledger Fabric “panic: Error while trying to open DB: resource temporarily unavailable” during starting a peer

妖精的绣舞 提交于 2019-12-11 12:25:45
问题 I am trying to run multiple peers in different terminals on an Ubuntu 16.04 LTS machine. I am able to generate the certs for the configuration and channel transaction using the cryptogen and configtxgen tools. I am also able to start a peer (peer0) using the below configuration (start-peer0.sh) CORE_PEER_ENDORSER_ENABLED=true \ CORE_PEER_PROFILE_ENABLED=true \ CORE_PEER_ADDRESS=peer0:7051 \ CORE_PEER_CHAINCODELISTENADDRESS=peer0:7052 \ CORE_PEER_ID=org0-peer0 \ CORE_PEER_LOCALMSPID=Org0MSP \

Usage of Query System chaincode

限于喜欢 提交于 2019-12-11 09:46:18
问题 Hi I am trying to query a block by with these piece of code by importing ledger package which is part of QSCC but there are some errors when try to invoke please clarify whether this is correct way of doing it. func (t *SimpleChaincode) expt(stub shim.ChaincodeStubInterface, args []string) pb.Response{ var plp ledger.PeerLedgerProvider var pl ledger.PeerLedger lId,err:=plp.List() if err != nil { return shim.Error("Invalid transaction amount, expecting a integer value") } fmt.Println(" List

Error while running make command using Fabric 1.0.6 after all the 15 steps

扶醉桌前 提交于 2019-12-11 09:25:14
问题 I am installing fabric in a custom path $HOME//gopath/src/github.com/hyperledger/fabric using the make command but after installing all the 15 steps, I am getting the following error Step 15/15 : LABEL org.hyperledger.fabric.version=1.0.2 org.hyperledger.fabric.base.version=0.3.2 ---> Running in ed05a67810db Removing intermediate container ed05a67810db ---> 99b4b0b28957 Successfully built 99b4b0b28957 Successfully tagged hyperledger/fabric-javaenv:latest docker tag hyperledger/fabric-javaenv

Parsing Decoded JSON in PHP (blokchain API)

自古美人都是妖i 提交于 2019-12-11 07:37:11
问题 Hello I am trying to extract some info from a json format page The page is : https://blockchain.info/fr/rawaddr/1BQLNJtMDKmMZ4PyqVFfRuBNvoGhjigBKF this link allows to get all bitcoin transactions from an address. All the quotation marks confuse me, I can not see clearly I want to display everything like the original blockchain website Blockchain Display view The beginning will be something like that $json = file_get_contents("https://blockchain.info/fr/rawaddr