Install venv:
sudo apt install -y python3-venv
Create a Virtual Environment:
python3 -m venv my_env
Activate Virtual Environment:
source my_env/bin/activate
Deactivate Virtual Environment:
| import json, csv | |
| import os | |
| def Sort(sub_li): | |
| sub_li.sort(key = lambda x: x[0]) | |
| return sub_li | |
| files = next(os.walk("./license-list-data/json/details"))[2] | |
| lic_dir = 'license-list-data/json/details' | |
| csv_data = [] |
| import json, csv | |
| import requests | |
| def Sort(sub_li): | |
| sub_li.sort(key = lambda x: x[0]) | |
| return sub_li | |
| csv_data = [] | |
| url = 'https://api.github.com/repos/spdx/license-list-data/releases/latest' | |
| #get latest version release info in form of tag |
Install venv:
sudo apt install -y python3-venv
Create a Virtual Environment:
python3 -m venv my_env
Activate Virtual Environment:
source my_env/bin/activate
Deactivate Virtual Environment:
This gist contains the solution for Chaincode Labs LN Seminar task 1. LND Note: The updated test file lnd_single_hop_invoice_test.go is added below.
Problem Statement:
In https://github.com/lightningnetwork/lnd/blob/6d661334599ffa2a409ad6b0942328f9fd213d09/lntest/itest/lnd_single_hop_invoice_test.go#L24-L33 Alice sends payment to Bob. Add a new node (Carol), open a channel from Bob to Carol and then send a payment from Alice to Bob to Carol. Create a gist and please include the modifications you made and an output of the test you created.
Steps to run the test:
git clone https://github.com/lightningnetwork/lnd| #!/usr/bin/env bash | |
| # Copyright 2021 The Kubernetes Authors. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
| /* | |
| Copyright 2018 The Kubernetes Authors. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and |
| /* | |
| Copyright 2021 The Kubernetes Authors. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "sync" | |
| "time" | |
| ) |
| // Copyright 2020-2021 Tetrate | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| 2023-03-06T11:43:58.165346Z info envoy wasm external/envoy/source/extensions/common/wasm/context.cc:1148 wasm log istio-system.swimlane-headers-propagate: srs cluster inbound|9080|| thread=23 | |
| 2023-03-06T11:43:58.165510Z info envoy wasm external/envoy/source/extensions/common/wasm/context.cc:1148 wasm log istio-system.swimlane-headers-propagate: srs plugin name thread=23 | |
| 2023-03-06T11:43:58.165938Z info envoy wasm external/envoy/source/extensions/common/wasm/context.cc:1148 wasm log istio-system.swimlane-headers-propagate: srs inbound header x-swimlane alpha thread=23 | |
| 2023-03-06T11:43:58.166006Z info envoy wasm external/envoy/source/extensions/common/wasm/context.cc:1148 wasm log istio-system.swimlane-headers-propagate: srs inbound header x-swimlane-service-index %!s(T=0) thread=23 | |
| 2023-03-06T11:43:58.166055Z info envoy wasm external/envoy/source/extensions/common/wasm/context.cc:1148 wasm log istio-system.swimlane-headers-propagate: request header --> :authority: 34.83.143.178 thread=23 | |
| 2023-03-06T11:43:58. |