The default coins selector simply picks the oldest coins. You are free
to implement your own coin selector.


On 12/06/2016 12:01 AM, Cary Cherng wrote:
> So nevermind I think I just misunderstood how things work. It appears to
> be correctly sending 0.0002718 to the correct address. But it is also
> sending an even larger amount of 0.0023281 to a new key in the wallet.
> Why does it send such a large total amount only to send most of it back
> as change?
> 
>>>> PENDING:
>       Sends 0.0027134 BTC and receives 0.0025999 BTC, total value -0.0001135 
> BTC.
>       c1068f3e70bff8044258b17ffb047d482f586ccde42c4b55ba257149350f2cd4
>       confidence: Pending/unconfirmed.
>       in
> PUSHDATA(71)[304402201474dd8293749f83ecce5650d6539c384456e57d7b8e49147248a9d6904e1d31022022403beed5fa6cdfccf69191cb128a2a8cd3bc15dc4d2a2f8e2cf831f07ba25d01]
> PUSHDATA(33)[028110f3375e00d535f4c0fe7aaf87ff59565cf01ad0b830ce7f4e3ccbe0618093]
> 0.0027134 BTC
>       
> outpoint:5100ae007cd58005d24ce2e4052d9dff6bafd753e4624e4aaf880f32ef87da63:1 
> hash160:71b5af58c8eba6c26d35eccff3c9b2081f236399
>       out DUP HASH160 PUSHDATA(20)[b43770eaf68049d5a057595e402d9268dbe4fa29]
> EQUALVERIFY CHECKSIG 0.0002718 BTC
>       out DUP HASH160 PUSHDATA(20)[7c238cafeb7e776b5bfeee4cbdad851d26dbc445]
> EQUALVERIFY CHECKSIG 0.0023281 BTC
>       fee 0.00050444 BTC/kB, 0.0001135 BTC for 225 bytes
>       prps USER_PAYMENT
> 
> 
> On Monday, December 5, 2016 at 12:15:13 PM UTC-8, Andreas Schildbach wrote:
> 
>     Can you provide the logfile for the send? The reason is probably the
>     network fee?
> 
> 
>     On 12/05/2016 01:32 AM, Cary Cherng wrote:
>     > https://gist.github.com/ccherng/06a1007ce9f6431fbc88866ffcfb4cdf
>     <https://gist.github.com/ccherng/06a1007ce9f6431fbc88866ffcfb4cdf>
>     >
>     > I have some test code that I am experimenting with on the testnet. I
>     > tried to send 0.0002718 from my wallet to an adddress that is part of
>     > the wallet. What the console output which is at the bottom of the
>     gist
>     > shows is
>     >
>     > Sends 0.0027134 BTC and receives 0.0025999 BTC, total value
>     -0.0001135 BTC.
>     >
>     > Why is it not sending 0.0002718 ?
>     >
>     > --
>     > 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]
>     > <mailto:[email protected]>.
>     > For more options, visit https://groups.google.com/d/optout
>     <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]
> <mailto:[email protected]>.
> 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.

Reply via email to