I thought for a while. And wondered if the above circumstance happened because the BloomFilter was not reset to add related ECkeys . So the sync listeners added to the tx would lose effectiveness. But will related operations cause serious thread problems?
bitcoin.wallet().getBloomFilter(0.00001).insert(connectedEckey); 在 2017年5月15日星期一 UTC+8下午3:52:49,Andreas Schildbach写道: > > Confidence is basically something that you build yourself. When > receiving a transaction directly (e.g. via Bluetooth) confidence should > depend a lot on the existing relationship to the partner, since a > pending transaction alone doesn't guarantee much. > > The default implementation builds confidence by receiving the > transaction from other peers it has randomly connected to, and of course > by receiving it via the blockchain. > > > On 05/13/2017 10:29 PM, vivid wang wrote: > > Suppose your partner build a valid tx and send it to you > > by tx.bitcoinSerialize() as soon as he broadcasts it, is there any > > method to sync the tx confidence only by your wallet and the > > deserialized tx? > > I have tried to add confidence listener, use wallet.commitTx(), or > > bitcoin.peerGroup.broadcast(tx) ,but these totally doesn't work. > > Listeners doesn't get any feedback, and it's wired to find > > peerGroup.broadcast(tx) stuck to "the TX has witnessed by 0 peers". > > I have searched the former posts ,and found Mike has said > > that" Confidence won't change unless the wallet contains transactions > > and keys *before* syncing the block chain." > > Does that mean the wallet has no means to listen or trace any tx even > > it's still pending and hasn't been included to any block as long as the > > tx has no connections with the wallet? > > Then how to deal with the circumstances that trust consensus > > application relies? > > It's very important to me and I'd appreciated it if someone would help > > Thanks > > > > > > -- > > You received this message because you are subscribed to the Google > > Groups "bitcoinj" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to [email protected] <javascript:> > > <mailto:[email protected] <javascript:>>. > > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
