This file contains hidden or 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
[36m2024-04-20 08:07:46.968 UTC [viperutil] getKeysRecursively -> DEBU 001[0m Found map[interface{}]interface{} value for metrics | |
[36m2024-04-20 08:07:46.968 UTC [viperutil] unmarshalJSON -> DEBU 002[0m Unmarshal JSON: value cannot be unmarshalled: invalid character 'p' looking for beginning of value | |
[36m2024-04-20 08:07:46.968 UTC [viperutil] getKeysRecursively -> DEBU 003[0m Found real value for metrics.Provider setting to string prometheus | |
[36m2024-04-20 08:07:46.968 UTC [viperutil] getKeysRecursively -> DEBU 004[0m Found map[string]interface{} value for metrics.Statsd | |
[36m2024-04-20 08:07:46.968 UTC [viperutil] unmarshalJSON -> DEBU 005[0m Unmarshal JSON: value cannot be unmarshalled: invalid character 's' after top-level value | |
[36m2024-04-20 08:07:46.968 UTC [viperutil] getKeysRecursively -> DEBU 006[0m Found real value for metrics.Statsd.WriteInterval setting to string 30s | |
[36m2024-04-20 08:07:46.968 UTC [viperutil] unmarshalJSON -> DEBU 007[0m Unmarshal JSON: value is not a string: <nil> |
This file contains hidden or 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
{ | |
"channel_group": { | |
"groups": { | |
"Consortiums": { | |
"groups": { | |
"uatuat": { | |
"groups": { | |
"struatwalamMSP": { | |
"groups": {}, | |
"mod_policy": "Admins", |
This file contains hidden or 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
x-variables: | |
flag_initial_cluster_token: &flag_initial_cluster_token '--initial-cluster-token=mys3cr3ttok3n' | |
common_settings: &common_settings | |
image: quay.io/coreos/etcd:v3.5.9 | |
entrypoint: /usr/local/bin/etcd | |
ports: | |
- 2379 | |
services: | |
etcd-1: |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"encoding/hex" | |
"fmt" | |
"io" |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
) | |
// Function to perform Caesar Cipher encryption | |
func caesarEncrypt(plaintext string, shift int) string { | |
ciphertext := "" | |
for _, char := range plaintext { |
This file contains hidden or 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
//Intersection returns the lists of all the elements that are common to both slices. | |
func Intersection(a, b interface{}) []interface{} { | |
set := make([]interface{}, 0) | |
hash := make(map[interface{}]bool) | |
av := reflect.ValueOf(a) | |
bv := reflect.ValueOf(b) | |
for i := 0; i < av.Len(); i++ { | |
el := av.Index(i).Interface() | |
hash[el] = true |
This file contains hidden or 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
sudo apt update | |
sudo apt install default-jre -y | |
sudo apt install default-jdk -y | |
sleep 2 | |
echo "export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/bin/java" >> ~/.profile | |
sleep 2 | |
source ~/.profile |
This file contains hidden or 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
caliper: | |
benchconfig: ./benchmarks/assetCCBenchmark.yaml | |
networkconfig: ./networks/networkConfig.yaml | |
bind: | |
sut: fabric:2.2 | |
report: | |
path: ./report.html | |
logging: | |
template: "%timestamp%%level%%module%%message%%metadata%" | |
formats: |
This file contains hidden or 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
'use strict'; | |
const { WorkloadModuleBase } = require('@hyperledger/caliper-core'); | |
class MyWorkload extends WorkloadModuleBase { | |
constructor() { | |
super(); | |
} | |
async initializeWorkloadModule(workerIndex, totalWorkers, roundIndex, roundArguments, sutAdapter, sutContext) { |
This file contains hidden or 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
'use strict'; | |
const { WorkloadModuleBase } = require('@hyperledger/caliper-core'); | |
class MyWorkload extends WorkloadModuleBase { | |
constructor() { | |
super(); | |
this.txIndex = -1; | |
this.colors = ['red', 'blue', 'green', 'black', 'white', 'pink', 'rainbow']; | |
this.owners = ['Alice', 'Bob', 'Claire', 'David']; |
NewerOlder