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
sanket1729@sanket-ubuntu:~/bitcoin/src$ more ~/.bitcoin/bitcoin.conf | |
prune=2000 | |
testnet=1 | |
server=1 | |
daemon=1 | |
rpcuser=sanket1729 | |
rpcpass=testing | |
zmqpubrawblock=tcp://127.0.0.1:28332 | |
zmqpubrawtx=tcp://127.0.0.1:28333 | |
sanket1729@sanket-ubuntu:~/bitcoin/src$ more ~/.lnd/lnd.conf |
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
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] | |
pub struct Miniscript<Pk, Pkh=hash160::Hash>{ | |
///A node in the Abstract Syntax Tree( | |
node: astelem::AstElem<Pk, Pkh>, | |
///The correctness and malleability type information for the AST node | |
ty: Option<types::Type>, | |
///Additional information helpful for extra analysis. | |
ext: Option<types::extra_props::ExtData> | |
} |
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
fn cause(&self) -> Option<&error::Error> { | |
- None | |
+ match self{ | |
+ Error::Secp(x) => Some(x), | |
+ x => Some(x), | |
+ } |
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
0 108.0000000000 35 c:pk() | |
1 146.0000000000 72 or_b(c:pk(),sc:pk()) | |
2 216.0000000000 70 and_v(vc:pk(),c:pk()) | |
3 146.0000000000 72 or_b(c:pk(),sc:pk()) | |
4 146.0000000000 72 or_b(c:pk(),sc:pk()) | |
5 145.0000000000 65 or_b(dvc:pk_h(0000000000000000000000000000000000000000),sc:pk()) | |
6 146.0000000000 72 or_b(c:pk(),sc:pk()) | |
7 146.0000000000 72 or_b(c:pk(),sc:pk()) | |
8 145.0000000000 65 or_b(dvc:pk_h(0000000000000000000000000000000000000000),sc:pk()) | |
9 140.0909090909 65 or_b(c:pk(),sdvc:pk_h(0000000000000000000000000000000000000000)) |
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
0 248.9189189189 169 or_b(or_b(c:pk(),s:or_b(dvc:pk_h(0000000000000000000000000000000000000000),sdvc:pk_h(0000000000000000000000000000000000000000))),s:or_b(c:pk(),sc:pk())) | |
1 240.0909090909 151 or_b(or_i(and_v(v:or_b(dv:sha256(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa),sdvc:pk_h(0000000000000000000000000000000000000000)),and_v(vc:pk(),after(1))),0),sc:pk()) | |
2 247.1000000000 162 or_b(c:pk(),s:or_b(or_b(dvc:pk_h(0000000000000000000000000000000000000000),s:or_b(dvc:pk_h(0000000000000000000000000000000000000000),sdvc:pk_h(0000000000000000000000000000000000000000))),sc:pk())) | |
3 208.8504201681 128 or_b(or_b(c:pk(),s:or_b(dvc:pk_h(0000000000000000000000000000000000000000),sdvc:pk_h(0000000000000000000000000000000000000000))),sj:and_v(vc:pk_h(0000000000000000000000000000000000000000),after(1))) | |
4 282.2513368984 166 or_b(and_b(or_b(sha256(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa),sdvc:pk_h(000000000000000000000000000 |
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
pub trait ToPkh{ | |
fn to_pkh(&self) -> hash160::Hash; | |
} | |
impl ToPkh for hash160::Hash{ | |
fn to_pkh(&self) -> hash160::Hash{ | |
*self | |
} | |
} |
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
#[test] | |
fn htlc() { | |
Descriptor::<bitcoin::PublicKey>::from_str( | |
"wsh(c:or_i(and_v(v:sha256(0000000000000000000000000000000000000000000000000000000000000000),pk_h(1111111111111111111111111111111111111111)),and_v(v:after(3333333),pk_h(2222222222222222222222222222222222222222))))").expect("htlc should be valid descriptor"); | |
} |
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
[email protected] install /usr/lib/node_modules/ganache-cli/node_modules/keccak | |
> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used." | |
npm ERR! path /root/.npm/_logs | |
npm ERR! code EACCES | |
npm ERR! errno -13 | |
npm ERR! syscall scandir | |
npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs' | |
npm ERR! { Error: EACCES: permission denied, scandir '/root/.npm/_logs' | |
npm ERR! stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'', |
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
2019-09-04T19:06:36.277000Z TestFramework (INFO): Tests successful | |
sanket1729@sanket-ubuntu:~/bitcoin/test/functional$ python3 example_test.py | |
2019-09-04T20:02:01.246000Z TestFramework (INFO): Initializing test directory /tmp/test79crzh96 | |
2019-09-04T20:02:02.213000Z TestFramework (INFO): Starting test! | |
2019-09-04T20:02:02.214000Z TestFramework (INFO): Calling a custom function | |
2019-09-04T20:02:02.214000Z TestFramework (INFO): Calling a custom method | |
2019-09-04T20:02:02.214000Z TestFramework (INFO): Running custom_method | |
2019-09-04T20:02:02.214000Z TestFramework (INFO): Create some blocks | |
2019-09-04T20:02:02.229000Z TestFramework (INFO): Wait for node1 to reach current tip (height 11) using RPC | |
2019-09-04T20:02:02.234000Z TestFramework (INFO): Connect node2 and node1 |
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
DEBUG root:powermixing.py:70 Command:compute-power-sums sharedata/14afb84367834cbb8122b5302fb86e65-0.input sharedata/power-b50d5197ed734dd988403d4bfd40948d_0.sums | |
DEBUG root:powermixing.py:71 Output: b'' | |
INFO root:powermixing.py:73 Error: b'/bin/sh: compute-power-sums: command not found\n' | |
DEBUG root:powermixing.py:70 Command:compute-power-sums sharedata/eded0810c059473182785a88f7260483-0.input sharedata/power-b50d5197ed734dd988403d4bfd40948d_0.sums | |
DEBUG root:powermixing.py:71 Output: b'' | |
INFO root:powermixing.py:73 Error: b'/bin/sh: compute-power-sums: command not found\n' | |
DEBUG root:powermixing.py:70 Command:compute-power-sums sharedata/05bf98127d3a43efb06e90a293a0c0e3-0.input sharedata/power-b50d5197ed734dd988403d4bfd40948d_0.sums | |
DEBUG root:powermixing.py:71 Output: b'' | |
INFO root:powermixing.py:73 Error: b'/bin/sh: compute-power-sums: command not found\n' | |
DEBUG root:powermixing.py:70 Command:compute-power-sums sharedata/38bb43dace614b93b8f8da404b0db1dd-0.input sharedata/p |
OlderNewer