Skip to content
Merged

sync #23

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .github/workflows/ci-client-cli.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/ci-data-wasm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
name: ci-data-wasm

on:
workflow_dispatch:
inputs:
ckb_light_client_url:
description: 'CKB Light Client Repository URL'
required: false
default: 'https://github.com/nervosnetwork/ckb-light-client.git'
ckb_light_client_branch:
description: 'CKB Light Client Branch'
required: false
default: 'develop'
rusqlite:
description: 'Enable rusqlite feature'
required: false
default: ''
type: string
push:
branches:
- master
Expand All @@ -24,6 +39,10 @@ jobs:
node-version: '16'
- name: prepare env
id: runtest
env:
CKB_LIGHT_CLIENT_URL: ${{ github.event.inputs.ckb_light_client_url || 'https://github.com/nervosnetwork/ckb-light-client.git' }}
CKB_LIGHT_CLIENT_BRANCH: ${{ github.event.inputs.ckb_light_client_branch || 'develop' }}
RUSQLITE: ${{ github.event.inputs.rusqlite }}
run: |
bash prepare_wasm.sh
npm install --save-dev mocha @types/mocha chai @types/chai
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/ci-data.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
name: ci-data

on:
workflow_dispatch:
inputs:
ckb_light_client_url:
description: 'CKB Light Client Repository URL'
required: false
default: 'https://github.com/nervosnetwork/ckb-light-client.git'
ckb_light_client_branch:
description: 'CKB Light Client Branch'
required: false
default: 'develop'
rusqlite:
description: 'Enable rusqlite feature'
required: false
default: ''
type: string
push:
branches:
- master
Expand Down Expand Up @@ -35,6 +50,10 @@ jobs:
${{ runner.os }}-node_modules-
- name: prepare env
id: runtest
env:
CKB_LIGHT_CLIENT_URL: ${{ github.event.inputs.ckb_light_client_url || 'https://github.com/nervosnetwork/ckb-light-client.git' }}
CKB_LIGHT_CLIENT_BRANCH: ${{ github.event.inputs.ckb_light_client_branch || 'develop' }}
RUSQLITE: ${{ github.event.inputs.rusqlite }}
run: |
npm install --save-dev mocha @types/mocha chai @types/chai
sh prepare.sh
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
name: ci-dev

on:
workflow_dispatch:
inputs:
ckb_light_client_url:
description: 'CKB Light Client Repository URL'
required: false
default: 'https://github.com/nervosnetwork/ckb-light-client.git'
ckb_light_client_branch:
description: 'CKB Light Client Branch'
required: false
default: 'develop'
rusqlite:
description: 'Enable rusqlite feature'
required: false
default: ''
type: string
push:
branches:
- master
Expand All @@ -24,6 +39,10 @@ jobs:
node-version: '16'
- name: prepare env
id: runtest
env:
CKB_LIGHT_CLIENT_URL: ${{ github.event.inputs.ckb_light_client_url || 'https://github.com/nervosnetwork/ckb-light-client.git' }}
CKB_LIGHT_CLIENT_BRANCH: ${{ github.event.inputs.ckb_light_client_branch || 'develop' }}
RUSQLITE: ${{ github.event.inputs.rusqlite }}
run: |
npm install --save-dev mocha @types/mocha chai @types/chai
sh prepare_dev.sh
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
name: ci

on:
workflow_dispatch:
inputs:
ckb_light_client_url:
description: 'CKB Light Client Repository URL'
required: false
default: 'https://github.com/nervosnetwork/ckb-light-client.git'
ckb_light_client_branch:
description: 'CKB Light Client Branch'
required: false
default: 'develop'
rusqlite:
description: 'Enable rusqlite feature'
required: false
default: ''
type: string
push:
branches:
- master
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/ckb-index-panic.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/ckb-light-client-ci-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: ci-ckb-wasm

on:
workflow_dispatch:
inputs:
ckb_light_client_url:
description: 'CKB Light Client Repository URL'
required: false
default: 'https://github.com/nervosnetwork/ckb-light-client.git'
ckb_light_client_branch:
description: 'CKB Light Client Branch'
required: false
default: 'develop'
rusqlite:
description: 'Enable rusqlite feature'
required: false
default: ''
type: string
push:
branches:
- master
Expand Down Expand Up @@ -38,6 +52,10 @@ jobs:
${{ runner.os }}-node_modules-
- name: prepare env
id: runtest
env:
CKB_LIGHT_CLIENT_URL: ${{ github.event.inputs.ckb_light_client_url || 'https://github.com/nervosnetwork/ckb-light-client.git' }}
CKB_LIGHT_CLIENT_BRANCH: ${{ github.event.inputs.ckb_light_client_branch || 'develop' }}
RUSQLITE: ${{ github.event.inputs.rusqlite }}
run: |
npm install --save-dev mocha @types/mocha chai @types/chai
bash prepare_wasm.sh
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/ckb-light-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: ci-ckb

on:
workflow_dispatch:
inputs:
ckb_light_client_url:
description: 'CKB Light Client Repository URL'
required: false
default: 'https://github.com/nervosnetwork/ckb-light-client.git'
ckb_light_client_branch:
description: 'CKB Light Client Branch'
required: false
default: 'develop'
rusqlite:
description: 'Enable rusqlite feature'
required: false
default: ''
type: string
push:
branches:
- master
Expand Down Expand Up @@ -36,6 +50,10 @@ jobs:
${{ runner.os }}-node_modules-
- name: prepare env
id: runtest
env:
CKB_LIGHT_CLIENT_URL: ${{ github.event.inputs.ckb_light_client_url || 'https://github.com/nervosnetwork/ckb-light-client.git' }}
CKB_LIGHT_CLIENT_BRANCH: ${{ github.event.inputs.ckb_light_client_branch || 'develop' }}
RUSQLITE: ${{ github.event.inputs.rusqlite }}
run: |
npm install --save-dev mocha @types/mocha chai @types/chai
sh prepare.sh
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/ckb-light-client-roll-back.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: ckb-light-client-roll-back

on:
workflow_dispatch:
inputs:
ckb_light_client_url:
description: 'CKB Light Client Repository URL'
required: false
default: 'https://github.com/nervosnetwork/ckb-light-client.git'
ckb_light_client_branch:
description: 'CKB Light Client Branch'
required: false
default: 'develop'
rusqlite:
description: 'Enable rusqlite feature'
required: false
default: ''
type: string



Expand Down Expand Up @@ -35,6 +49,10 @@ jobs:
${{ runner.os }}-node_modules-
- name: test
id: runtest
env:
CKB_LIGHT_CLIENT_URL: ${{ github.event.inputs.ckb_light_client_url || 'https://github.com/nervosnetwork/ckb-light-client.git' }}
CKB_LIGHT_CLIENT_BRANCH: ${{ github.event.inputs.ckb_light_client_branch || 'develop' }}
RUSQLITE: ${{ github.event.inputs.rusqlite }}
run: |
npm install --save-dev mocha @types/mocha chai @types/chai
sh prepare.sh
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/miner-load.yml

This file was deleted.

5 changes: 0 additions & 5 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ sh start.sh
sh status.sh
cat ckb-light-client/target/release/node.log
echo "prepare ckb Light Client finish"
cd ../../
git clone https://github.com/TheWaWaR/ckb-cli-light-client.git
cd ckb-cli-light-client
cargo build
echo "prepare ckb-cli-light-client finish"
1 change: 1 addition & 0 deletions service/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class LightClient {
async start(): Promise<boolean> {
if (checkLightClientWasm()){
await request(1,this.url,"start",[])
await sleep(5*1000)
return true
}
await sh("cd " + this.dirPath + "/target/release && RUST_LOG=info,ckb_light_client=trace ./ckb-light-client run --config-file ./config.toml > node.log 2>&1 &")
Expand Down
Loading
Loading