-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat :add 2 rpc method * feat :add 2 rpc method * fix peer test * fix test failed that ckb-light update too slow --------- Co-authored-by: linguopeng <[email protected]>
- Loading branch information
1 parent
19567ea
commit 9c1c918
Showing
4 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {request} from "../service"; | ||
import {CKB_LIGHT_RPC_URL} from "../config/config"; | ||
import {expect} from "chai"; | ||
|
||
describe('local_node_info', function () { | ||
it("demo",async ()=>{ | ||
const res = await request(1,CKB_LIGHT_RPC_URL,"local_node_info",[]) | ||
expect(res.active).to.be.equal(true) | ||
|
||
}) | ||
}); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {request} from "../service"; | ||
import {CKB_LIGHT_RPC_URL} from "../config/config"; | ||
import {expect} from "chai"; | ||
|
||
describe('get_peers', function () { | ||
|
||
it("demo",async ()=>{ | ||
const res = await request(1,CKB_LIGHT_RPC_URL,"get_peers",[]) | ||
expect(res).to.be.not.equal("") | ||
}) | ||
}); |
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
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