This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"index": { | |
"fields": ["name"] | |
}, | |
"ddoc": "index@1.0.0", | |
"name": "name-index", | |
"type": "json" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Shows all the marbles or objects in the ledger (blockchain) | |
//This is a marbles chaincode (hyperledger fabric samples) related code. | |
// Jasti Sri Radhe Shyam | |
func (t *SimpleChaincode) getMarblesByRangeAll(stub shim.ChaincodeStubInterface) pb.Response { | |
//Gets all the data with undefined range | |
resultsIterator, err := stub.GetStateByRange("", "") | |
if err != nil { | |
return shim.Error(err.Error()) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Usage: | |
------------------------------------------------- | |
var syn_timeout = require('synchronous_timeout'); | |
//some code | |
await syn_timeout.pause(300); | |
//some code | |
------------------------------------------------- | |
if defined and used in a same file: | |
------------------------------------------------- |
NewerOlder