Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 05 18:31
    ndelvalle opened #570
  • Oct 31 07:55
    pmstyle123 closed #569
  • Oct 31 07:54
    pmstyle123 synchronize #569
  • Oct 31 07:52
    parity-cla-bot commented #569
  • Oct 31 07:52
    pmstyle123 commented #569
  • Oct 31 07:50
    parity-cla-bot commented #569
  • Oct 31 07:50
    pmstyle123 opened #569
  • Oct 08 05:46
    soc1c commented #568
  • Oct 07 15:42

    NikVolf on na-fix-build

    (compare)

  • Oct 07 15:42

    NikVolf on master

    cargo update -p getopts Merge pull request #568 from pa… (compare)

  • Oct 07 15:42
    NikVolf closed #568
  • Oct 07 15:42
    NikVolf closed #567
  • Oct 07 08:34
    niklasad1 labeled #568
  • Oct 07 08:30
    parity-cla-bot commented #568
  • Oct 07 08:30
    niklasad1 opened #568
  • Oct 07 08:28

    niklasad1 on na-fix-build

    cargo update -p getopts (compare)

  • Oct 07 05:22
    zhfnjust commented #552
  • Oct 07 01:45
    soc1c labeled #567
  • Oct 07 01:45
    soc1c labeled #567
  • Oct 07 01:45
    soc1c labeled #567
5chdn
@5chdn
wrong channel?
Crypto Piece
@crypto_piece_twitter
This message was deleted
Michael Poutre
@M1kep
Anybody happen to be around?
5chdn
@5chdn
Yes
Kunal Ransing
@kunalransing
Hi All, How we can use parity bitcoin with bitcoinj library ?
Robert Durst
@robertDurst
Hey everyone! What is the purpose of indexed_block? Why do Blocks, Block Headers, and Transactions all have this indexed struct as well?
sken
@sken77
hi is this client supporting bitcoin cash?
Thibaut Sardan
@Tbaut
Sanjay Sanathanan
@sanjays95
Hi all
I was trying to setup the bitcoin core in my latop using https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md.
Unfortunately when i run the make command, I get an error. recipe for target 'qt/qt_libbitcoinqt_a-moc_bitcoinaddressvalidator.o' failed
Thibaut Sardan
@Tbaut
@sanjays95 can you open an issue in the GitHub repo? We'd have a look
Khalifa
@enkhalifapro
Hello @channel
if I wanted to learn parity-bitcoin code design and architecture
what should I do ?
I wanna learn how to build my own blockchain in rust and I want to benefit from parity-bitcoin architecture
devcogcomp
@devcogcomp
Hi all! I installed parity-bitcoin and then tried to run ./tools/regtest.sh and got a message:
10:09:27 17 BitcoindComparisonTool$1.onPreMessageReceived: bitcoind sent us a block it already had, make sure bitcoind has no blocks!
then "pbtc --btc" leads to an error: "Trying to open database with incompatible genesis block". Any suggestions how to deal with this?
5chdn
@5chdn
@devcogcomp could you try to run the regtest with a different database path? (by editing the regtest.sh?)
Johns Beharry
@johnsBeharry
hey everyone -- trying to setup a local test network from scratch but can't seem to figure out how to start the client without connecting to one of the defined peers.
joshua-mir
@joshua-mir
@johnsBeharry have you tried specifying peers manually with -s or -c? I'd also try using the --regtest flag, which looks like it sets up a private network.
Johns Beharry
@johnsBeharry
ok ye regtest seemed to be the only suitable option for a local simulation, but the name confused me -- thanks for the pointer
Nekonium, Deft, MMO, BWS, INDI Fan
@NukoExchange_twitter
hey guys.. i am admin to a discord with some hundersd coin programmmers and bitcoin related stuff. I would hope to win some more developers for our open community with a lot of job posting: And dont ban me:) https://discord.gg/K6q3j2U
mia "not giving away marbles"
@miandthemarbles_twitter
hey guys
how does bitcoin parity compare to bitcoin core regarding performance?
are there any metrics available regarding syncing a full node, reindexing the chain, chain size, etc.?
mia "not giving away marbles"
@miandthemarbles_twitter
is this the current state of the rpc api?
paritytech/parity-bitcoin#247
I need the following rpc endpoints, but only 1 of them seems to be supported by bitcoin-parity:
sendRawTransaction  => EXISTS
getRawTransaction   => MISSING
estimateSmartFee    => MISSING
getNetworkInfo      => MISSING
listUnspent         => MISSING
getTxOut            => MISSING
importAddress       => MISSING
after searching for each of these endpoints on the parity-bitcoin repo, this seems to be the current state
sendRawTransaction  => EXISTS
getRawTransaction   => EXISTS
estimateSmartFee    => MISSING
getNetworkInfo      => MISSING
listUnspent         => MISSING
getTxOut            => EXISTS
importAddress       => MISSING
joshua-mir
@joshua-mir
@miandthemarbles_twitter unfortunately that list is probably still up to date, ie, getRawTransaction is still unimplemented https://github.com/paritytech/parity-bitcoin/blob/0a3e376c223bbcc6ff4ddfdcdfcf8182236072c4/rpc/src/v1/impls/raw.rs#L137
This is probably the closest thing to metrics I'm aware of https://twitter.com/lopp/status/1061976061792129025?s=19 😅
mia "not giving away marbles"
@miandthemarbles_twitter
thanks @joshua-mir
kanna
@kannapoix

Hello!
I have a question.
When I tried to install rpc crate, cargo build won't success.
Cargo shows following error.

     Updating git repository `https://github.com/ethcore/rust-rocksdb`                                                                                                        
 error: no matching package named `rocksdb` found                                                                                                                             
 location searched: https://github.com/ethcore/rust-rocksdb
 required by package `db v0.1.0 (https://github.com/paritytech/parity-bitcoin.git#f5f3646e)`
     ... which is depended on by `rpc v0.1.0 (https://github.com/paritytech/parity-bitcoin.git#f5f3646e)`

I think the problem is in db's dependecies.
In Cargo.toml of db, it specifies rocksdb = { git = "https://github.com/ethcore/rust-rocksdb" } to install rocksdb. In the repository, there is no crate called rocksdb, but there is patiry-rocksdb. So dependencies should be specifed as parity-rocksdb = { git = "https://github.com/ethcore/rust-rocksdb" }
I'm new to Rust. I might be wrong.
What do you think about this?

TreadMillion (BCH Only please!)
@TreadMillion_twitter
Hi there. I wanted to know if Parity is up to date with the BCH software?
devcogcomp
@devcogcomp
Hi, just build pbtc from source and this is what I got by running the tests:
any idea what's happening?
devcogcomp
@devcogcomp
(base) devcogcomp@LinuxBox:~/blockchains/parity-bitcoin$ ./tools/regtests.sh
thread 'main' panicked at 'Failed to open database: DatabaseError("IO error: lock /home/devcogcomp/.local/share/pbtc/db/LOCK: Resource temporarily unavailable")', src/libcore/result.rs:997:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:70
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
3: std::panicking::default_hook
at src/libstd/panicking.rs:215
4: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:478
5: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:385
6: rust_begin_unwind
at src/libstd/panicking.rs:312
7: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
8: core::result::unwrap_failed
at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libcore/macros.rs:16
9: pbtc::util::open_db
at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libcore/result.rs:825
at pbtc/util.rs:15
10: pbtc::config::parse
at pbtc/config.rs:51
11: pbtc::main
at pbtc/main.rs:54
at pbtc/main.rs:46
12: std::rt::lang_start::{{closure}}
at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libstd/rt.rs:64
13: std::panicking::try::do_call
at src/libstd/rt.rs:49
at src/libstd/panicking.rs:297
14: <unknown>
at src/libpanic_abort/lib.rs:30
2019-03-30 18:46:38 INFO sync Switched to saturated state. Chain: [sch:0 -> req:0 -> vfy:1 -> stored: 125]
06:46:38 19 BitcoindComparisonTool$1.onPreMessageReceived: bitcoind sent us a block it already had, make sure bitcoind has no blocks!
2019-03-30 18:46:38 WARN sync Last peer was marked as non-useful. Moving to saturated state.
./tools/regtests.sh: line 4: 20162 Aborted (core dumped) ./target/$CARGO_TARGET/release/pbtc --btc --regtest --db-cache=192
Regtests failed
Full log:
USAGE: bitcoinjBlockStoreLocation runLargeReorgs(1/0) [port=18444]
06:46:37 1 H2FullPrunedBlockStore.<init>: org.h2.Driver loaded.
06:46:38 1 H2FullPrunedBlockStore.maybeConnect: Made a new connection to database jdbc:h2:/tmp/regtest-db;create=true;LOCK_TIMEOUT=60000
06:46:38 1 AbstractBlockChain.<init>: chain head is at height 0:
v1 block:
previous block: 0000000000000000000000000000000000000000000000000000000000000000
merkle root: 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
time: [1296688602] Wed Feb 02 18:16:42 EST 2011
difficulty target (nBits): 545259519
nonce: 2

06:46:38 1 AbstractBlockChain.<init>: chain head is at height 0:
v1 block:
previous block: 0000000000000000000000000000000000000000000000000000000000000000
merkle root: 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
time: [1296688602] Wed Feb 02 18:16:42 EST 2011
difficulty target (nBits): 545259519
nonce: 2

06:46:38 19 NioClientManager.handleKey: Successfully connected to localhost/127.0.0.1:18444
06:46:38 19 Peer.connectionOpened: Announcing to localhost/127.0.0.1:8333 as: /bitcoinj:0.12-SNAPSHOT/BlockAcceptanceComparisonTool:1.1/
06:46:38 19 Peer.processVersionMessage: Connected to 127.0.0.1: version=70014, subVer='/Satoshi:0.12.1/', services=0x9, time=2019-03-30 18:46:38, blocks=0
06:46:38 19 BitcoindComparisonTool$1.onPeerConnected: bitcoind connected
06:46:38 1 BitcoindComparisonTool.main: Testing block Initial Block 10dbefaf716de15da54bcc1297d2defa9394cc55c6233714f4a400a2ae1275a2
06:46:38 1 BitcoindComparisonTool.main: Sent inv with block 10dbefaf716de15da54bcc1297d2defa9394cc55c6233714f4a400a2ae1275a2
06:46:38 19 BitcoindComparisonTool$1.onPreMessageReceived: Found header 10dbefaf716de15da54bcc1297d2defa9394cc55c6233714f4a400
joshua-mir
@joshua-mir
@devcogcomp that error looks like it comes from running all the tests automatically? Do you see the same panic if you run the same tests manually?
kanna
@kannapoix
Sorry for questioning again.
Is there any reason, a line is commented out in script/src/sign.rs?
https://github.com/paritytech/parity-bitcoin/blob/dadfefe0a47ba79102f5050b81ccbab276261831/script/src/sign.rs#L159
joshua-mir
@joshua-mir
@kannapoix the commented code probably shouldn't be there at all, looking at what that code is trying to do.
devcogcomp
@devcogcomp
Thanks @joshua-mir
(base) devcogcomp@LinuxBox:~/blockchains/parity-bitcoin$ ./target/release/pbtc --btc --regtest
thread 'main' panicked at 'Failed to open database: DatabaseError("IO error: lock /home/devcogcomp/.local/share/pbtc/db/LOCK: Resource temporarily unavailable")', src/libcore/result.rs:997:5
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:70
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:58
             at src/libstd/panicking.rs:200
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:215
   4: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:478
   5: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:385
   6: rust_begin_unwind
             at src/libstd/panicking.rs:312
   7: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
   8: core::result::unwrap_failed
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libcore/macros.rs:16
   9: pbtc::util::open_db
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libcore/result.rs:825
             at pbtc/util.rs:15
  10: pbtc::config::parse
             at pbtc/config.rs:51
  11: pbtc::main
             at pbtc/main.rs:54
             at pbtc/main.rs:46
  12: std::rt::lang_start::{{closure}}
             at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/libstd/rt.rs:64
  13: std::panicking::try::do_call
             at src/libstd/rt.rs:49
             at src/libstd/panicking.rs:297
  14: <unknown>
             at src/libpanic_abort/lib.rs:30
Aborted (core dumped)
joshua-mir
@joshua-mir
I can't immediately tell why you would see that io error. Did you shutdown unsafely in the past @devcogcomp?
devcogcomp
@devcogcomp
Thanks @joshua-mir
I didn't, or at least I think I didn't.
I did have Bitcoin core client installed. I used to shut it down by Ctrl-C all the time. Tried to import blocks from bitcoind to no avail. Removed bitcoind code, all the blocks, but still have this :(
kanna
@kannapoix

@kannapoix the commented code probably shouldn't be there at all, looking at what that code is trying to do.

@joshua-mir Sorry for the late reply.
I only thought about script_sig for consume p2pkh, but there are many other script_sig.
You mean the code is only build signature and if I want to build whole script_sig, I have to do extra work after signed_input function runs.

bx3
@bx3
Hello, does anyone have a wallet for parity-bitcoin? I setup a regtest network with two nodes already; they mine blocks and synchronize the blockchain. Now I am curious how to sign transactions and make it available to mempool. Thanks
Trey Del Bonis
@delbonis_gitlab
hello, I was wondering if someone familiar with parity-bitcoin's internals could enlighten me on the threading model it uses for its database code
does it use a dedicated IO thread that you communicate with via async channels?
oh this chat is pretty dead
joshua-mir
@joshua-mir
@delbonis_gitlab that's right. Or at the very least there's a dedicated IO thread in charge of flushing the cache/memorydb and everything else operates on that synchronously, as far as I can tell.