Re: Download stalled at 91MB at testnet

2018-12-03 Thread Jameson Lopp
H I believe I ran into similar issues a while back - have you tried whitelisting the IP of your bitcoinj client in the Bitcoin Core conf? I also vaguely recall getting stalled connections from time to time and adding logic in my app to hack around it by disconnecting and reconnecting. On Sun,

Re: How can I make sure bitcoinj SPV wallet isn't missing a transaction ?

2018-11-17 Thread Jameson Lopp
my comment on this chart. > https://www.blockchain.com/charts/bip-9-segwit?timespan=1year > > > > On Friday, November 16, 2018 at 11:11:00 AM UTC-5, Jameson Lopp wrote: >> >> Over 40% of bitcoin transactions are spending SegWit UTXOs as of today: >> https://transactionfee.

Re: How can I make sure bitcoinj SPV wallet isn't missing a transaction ?

2018-11-16 Thread Jameson Lopp
Over 40% of bitcoin transactions are spending SegWit UTXOs as of today: https://transactionfee.info/charts/payments/segwit On Tue, Nov 13, 2018 at 11:54 AM Mike Lawrence wrote: > if you're planning on using for real production work, I would fork the > latest code, create a bunch of volume and lo

Re: testnet3 transaction strange address

2018-09-07 Thread Jameson Lopp
This is normal due to how UTXO-based cryptocurrencies operate. The remaining value from the spent UTXOs is "sent back to yourself" via a "change address." https://en.bitcoin.it/wiki/Change On Fri, Sep 7, 2018 at 3:41 AM Whitetiger TV wrote: > I sended 1btc,not 1.07 > > пятница, 7 сентября 2018 г

Re: Is MIN_NONDUST_OUTPUT in master up to date?

2018-05-25 Thread Jameson Lopp
Dust threshold is slightly more complicated now due to transition from bytes to weight: https://github.com/bitcoin/bitcoin/blob/0.16/src/policy/policy.cpp#L18 On Fri, May 25, 2018 at 5:15 AM, Andreas Schildbach wrote: > For reference, the change in 2017 was (very briefly) discussed in > https://

Re: Error at Block #481815 Reading the blockchain from Block #1 to the end

2018-03-19 Thread Jameson Lopp
20 millibits says that the block parser is choking on a transaction that spends a SegWit UTXO. On Mon, Mar 19, 2018 at 5:38 PM, Olivér Zsámár wrote: > Hello! > > I'm new to bitcoinj, and before doing anything, I just want to try some > easy stuff. > I want to read the whole blockchain from Block

Re: Bitcoinj's DNS Seed Addresses

2017-09-29 Thread Jameson Lopp
The PR in question: https://github.com/bitcoinj/bitcoinj/pull/1408 Probably worth noting that Andreas is employed by Bloq... http://bloq.com/bloq-expands-team-and-announces-board-of-advisors.html Regarding the privacy issue: perhaps, though there's no guarantee that other seed nodes aren't also k

Re: Do we need to set up a bitcoin node before using bitcoinj

2017-09-03 Thread Jameson Lopp
I highly recommend connecting to full nodes you operate yourself, for both privacy and performance reasons. On Sun, Sep 3, 2017 at 5:02 PM, FlyingBird wrote: > I've found it is very slow for bitcoinj to connect to the peers. It is > helpful to reduce the sync time when running our own node? > >

Re: Web examples and bitcoinj version

2017-08-11 Thread Jameson Lopp
It looks like the bitcoinj documentation site is open source and located here: https://github.com/bitcoinj/bitcoinj.github.io So if you have updated examples, you should be able to create a pull request to fix them in that repository. Thanks! On Wed, Aug 9, 2017 at 4:13 AM, wrote: > As I said i

Re: Bitcoin Cash

2017-08-02 Thread Jameson Lopp
No - transactions on Bitcoin mainnet cannot be replayed on the Bcash chain. On Wed, Aug 2, 2017 at 7:16 AM, BitcoinUser wrote: > A few Bitcoin Cash block were mined, can anybody say what will happen when > I will send some BTC using BitcoinJ? Will thouse transaction be valid for > BCC chain? (as

Re: Private and Public Key Tracking

2017-07-24 Thread Jameson Lopp
When you generate a private key it's up to you to keep track of it, preferably without telling it to anyone else. The key space for bitcoin is huge; the chance of a collision with someone else's key is essentially zero. On Mon, Jul 24, 2017 at 12:52 AM, BitCoinX3 wrote: > Who keeps track of whi

Re: Bitcoinj support for SegWit / NYA?

2017-07-18 Thread Jameson Lopp
It would be nice to have some clarification regarding outstanding issues for SegWit integration. >From poking around the repository, the only issue I found was https://github.com/bitcoinj/bitcoinj/issues/1301 It appears that there is a segwit feature branch that has some recent activity: https://

Re: bitcoinj -0.14 : How to decide fee for small amount

2017-07-17 Thread Jameson Lopp
any restrictions). And also performing small transaction using card > is costly. > But seems for small transaction "credit/debit card" are suitable. > What do you suggest ? > > Regards, > Kunal > > On Monday, 17 July 2017 21:20:06 UTC+5:30, Jameson Lopp wrote: >> &g

Re: bitcoinj -0.14 : How to decide fee for small amount

2017-07-17 Thread Jameson Lopp
Bitcoin block space is in high demand these days; if you're trying to send amounts less than 0.005 BTC (assuming only 1 input) then it probably won't make economic sense to do so. On Mon, Jul 17, 2017 at 11:46 AM, Kunal Ransing wrote: > Hi, > > I performed test 0.000814 BTC (100 RUB) transaction

Re: Reg : reason 'insufficient priority' (66) Error

2017-05-18 Thread Jameson Lopp
Hm, "priority" is an outdated concept in Bitcoin since the emergence of the fee market. I suspect that this older 0.12.1 node tried to use the priority rules to decide whether or not to accept the transaction because you did not pay a sufficient fee. I see in your debug output you paid 0 fee: fee

Re: Can anybody tell me how to use bitcoinj and hyperledger project (www.hyperledger.org)?

2017-04-08 Thread Jameson Lopp
ity of your new protocol. Tread carefully... - Jameson On Sat, Apr 8, 2017 at 11:24 AM, Jungwhan Kim wrote: > Could you recommend something in order to build a full node? And what do > you mean full node functionality? > > On Sat, Apr 8, 2017 at 11:13 AM, Jameson Lopp > wro

Re: Can anybody tell me how to use bitcoinj and hyperledger project (www.hyperledger.org)?

2017-04-08 Thread Jameson Lopp
comment. > > How about BitcoinJ? Can i build a whole blockchain technology by using > BitcoinJ? At this point, I am not interested in the bitcoin mining. I just > want to build a platform where a consumer/merchant can send/receive money. > > Thanks again > > On Sat, Apr 8, 2

Re: Can anybody tell me how to use bitcoinj and hyperledger project (www.hyperledger.org)?

2017-04-08 Thread Jameson Lopp
g bitcoinj api and send it to the > hyperledger, it would be incompatible? Don't they follow a common spec in > terms of transaction and generating public key and private key? > > > > Sent from my iPhone > > On Apr 8, 2017, at 10:21 AM, Jameson Lopp wrote: > >

Re: Can anybody tell me how to use bitcoinj and hyperledger project (www.hyperledger.org)?

2017-04-08 Thread Jameson Lopp
BitcoinJ isn't compatible with any of the Hyperledger projects to my knowledge. Fabric and Sawtooth Lake, for example, are not Bitcoin-style blockchains - they are new types of distributed ledgers that don't share much in common with Bitcoin and thus BitcoinJ can't interact with them. On Sat, Apr

Re: Any plans how to deal with a potential BU fork?

2017-03-22 Thread Jameson Lopp
he risk and damage of a HF... > > Am Dienstag, 21. März 2017 21:42:07 UTC-5 schrieb Jameson Lopp: >> >> I don't think replay protection can be added at the network level. Peers >> could lie about their software version and/or switch it, plus it's highly >> likely

Re: Any plans how to deal with a potential BU fork?

2017-03-21 Thread Jameson Lopp
I don't think replay protection can be added at the network level. Peers could lie about their software version and/or switch it, plus it's highly likely that a chain split won't result in a clean network partition. Transactions will get relayed around the network comprised of nodes on both chains

Re: How to make hex push transaction manually Bitcoinj

2017-03-06 Thread Jameson Lopp
I'd recommend reading the wallet documentation here: https://bitcoinj.github.io/working-with-the-wallet If you want to specify which nodes you push the transactions to, you can create a PeerGroup that you only add Peers to which you want to push the transactions. Then to push the transactions, cal

Re: How to make hex push transaction manually Bitcoinj

2017-03-03 Thread Jameson Lopp
Can you be more specific? Do you mean that you already have a signed, valid transaction hex and want to broadcast it to the network? Or are you asking for how to build and sign a transaction using a BitcoinJ wallet? On Fri, Mar 3, 2017 at 1:20 AM, wrote: > > > How to make hex push transaction

Re: Revisit REFERENCE_DEFAULT_MIN_TX_FEE and MIN_NONDUST_OUTPUT

2017-02-27 Thread Jameson Lopp
+1, sounds good to me. On Mon, Feb 27, 2017 at 6:13 PM, Oscar Guindzberg < oscar.guindzb...@gmail.com> wrote: > I am revisiting tx fees. > > I just read the discussion here: > https://github.com/bitcoinj/bitcoinj/pull/1096 > > It looks bitcoin core kept at 1000 for a while: > https://github.com/

Re: Importing blk*.dat files

2017-02-26 Thread Jameson Lopp
wever. > > Keep in mind, I want to build from the bytes array, because in another > situation I do not want to use the FileInputStream. > > Any ideas? Thank you so much. > > On 25 February 2017 at 16:34, Jameson Lopp wrote: > >> Aha, if you can somehow get access to the

Re: Importing blk*.dat files

2017-02-25 Thread Jameson Lopp
struct a block with it by passing it in to the > Block constructor? What exactly is the "payloadBytes" parameter? > > Thanks. > > On 22 February 2017 at 16:49, Jameson Lopp wrote: > >> That's quite odd; it sounds like you didn't actually add the File(s) to

Re: Importing blk*.dat files

2017-02-22 Thread Jameson Lopp
he > difference? > > On 22 February 2017 at 12:53, Nishil Shah wrote: > >> next() just complains that there is no next item in the iterator. Does >> this mean the I/O failed? According to the docs, the BlockFileLoader >> swallows I/O exceptions, so I can't see th

Re: Importing blk*.dat files

2017-02-21 Thread Jameson Lopp
;t think >> this works. >> >> On 19 February 2017 at 03:25, Jameson Lopp >> wrote: >> >>> Right, getReferenceClientList >>> <https://github.com/bitcoinj/bitcoinj/blob/3177bd52a2bfa491c5902e95b8840030e1a31159/core/src/main/java/org/bitcoinj/

Re: Importing blk*.dat files

2017-02-19 Thread Jameson Lopp
orage, which would be your "chain" object or whatever function to which you pass the blocks to be processed. - Jameson On Sun, Feb 19, 2017 at 2:00 AM, Nishil Shah wrote: > It doesn't take in a file name? > > Sent from my iPhone > > On Feb 19, 2017, at 12:33 A

Re: Importing blk*.dat files

2017-02-18 Thread Jameson Lopp
I think what you want is the BlockFileLoader, as seen here in the BlockImporter: https://github.com/bitcoinj/bitcoinj/blob/master/tools/src/main/java/org/bitcoinj/tools/BlockImporter.java#L67 - Jameson On Sat, Feb 18, 2017 at 11:51 PM, Nishil Shah wrote: > Is there anyway to import blk?.dat

Re: warning from peers: This is outdated and network-inconsistent software

2016-11-04 Thread Jameson Lopp
I suppose that's their fancy way of saying that your node no longer follows the same rules of newer nodes that don't accept alert messages. On Fri, Nov 4, 2016 at 3:55 PM, Wei Hsu wrote: > Hi, I'm getting this message running bitcoinj on prodnet: > > Received alert from peer [...]:8333: Warning:

Re: RPM oackage for Fedora

2016-07-18 Thread Jameson Lopp
Great; thanks! On Mon, Jul 18, 2016 at 2:39 PM, Jonny Heggheim wrote: > Hi, I would like to inform you that bitcoinj have been included in the > standard Fedora repo: > https://admin.fedoraproject.org/pkgdb/package/rpms/bitcoinj/ > > This makes it possible to ship clients that depend on bitcoinj

Re: Currencies Support

2016-06-21 Thread Jameson Lopp
It does not, though there are plenty of forks out there, such as Litecoin, Dogecoin and Namecoin forks, and there's a generic fork ( https://github.com/mappum/altcoinj ) as well. Ross Nicoll is working on a thin wrapper library ( https://github.com/rnicoll/libdohj ) which instead of being a full f

Re: Java class to read bitcoin.conf

2016-05-24 Thread Jameson Lopp
I think the hard part will be finding the bitcoin.conf on the system, assuming you aren't feeding its path into the app. You might be able to use some logic like so: https://github.com/Blockchaintechs/StakerUI/blob/master/src/main/CommWithWallet.java#L158 Though that code could use improving and p

Re: More reasons Wallet stops adding new blocks to chain on Testnet

2016-05-23 Thread Jameson Lopp
On Mon, May 23, 2016 at 12:30 PM, Andreas Schildbach wrote: > I'm replying to https://github.com/bitcoinj/bitcoinj/issues/1259 > > > I present some ideas for action but more thoughts are needed. Testnet > forks can be very long, to the degree it will run beyond what can be > handled with SPVBlock

Re: UnreadableWalletException: Unknown network parameters ID

2016-05-06 Thread Jameson Lopp
mail.com> wrote: > But I need a "tesnet" :) > > On Thursday, May 5, 2016 at 6:38:49 PM UTC+2, Jameson Lopp wrote: >> >> I see... I'm not sure if there's a workaround for that configuration - it >> would probably be easier for you to switch your bi

Re: UnreadableWalletException: Unknown network parameters ID

2016-05-05 Thread Jameson Lopp
ellanos.lo...@gmail.com> wrote: > I have 5 bitcoind process running in "testnet" mode in a machine and other > machine with miner attached > > On Thursday, May 5, 2016 at 6:22:23 PM UTC+2, Jameson Lopp wrote: >> >> But what are your bitcoin nodes running a

Re: UnreadableWalletException: Unknown network parameters ID

2016-05-05 Thread Jameson Lopp
gt; > Console.println("Address: " + walletKit.wallet.currentReceiveAddress) > Console.println("Bitcoins: " + walletKit.wallet.getBalance) > } > > > it works! > > > I'm going to read more about BitcoinJ because, obviously, I ignore > something... Thank you > >

Re: Block does not connect Exception

2016-05-05 Thread Jameson Lopp
Are you saying that this is breaking your application? This looks like normal behavior to me - it just means that you received an orphan block / out of order block and bitcoinj ignored it. In most cases, bitcoinj should end up receiving more blocks that eventually connect them together. I have had

Re: UnreadableWalletException: Unknown network parameters ID

2016-05-05 Thread Jameson Lopp
If you are running your own private test network then I'm pretty sure that you're going to need to pass the network ID as NetworkParameters.ID_REGTEST which is equivalent to "*org.bitcoin.regtest"* - Jameson On Thu, May 5, 2016 at 9:03 AM, Álvaro Castellanos López < alvaro.castellanos.lo...@gmai