1 2016-12-05 20:06:20 <earlz> Is there an easy way to clear out a local mempool? For regtest specifically.
 2 2016-12-05 20:10:20 <arubi> earlz, I changed to code a bit to drop unconfirmed after 1 minute instead of 72 hours
 3 2016-12-05 20:11:34 <sipa> earlz: shut down, delete mempool.dat, en start again
 4 2016-12-05 20:12:04 <arubi> sipa, would restarting with blocksonly=1, then restarting again without it work?
 5 2016-12-05 20:12:22 <arubi> I could check I guess, don't wanna drop the network now :)
 6 2016-12-05 20:12:25 <earlz> I don't seem have any mempool.dat sipa
 7 2016-12-05 20:12:46 <sipa> earlz: mempool.dat is being introduced in 0.14/master, 0.13 does not have it
 8 2016-12-05 20:13:02 <earlz> ah, I'm on .13.0 stable
 9 2016-12-05 20:13:32 <earlz> where is mempool stored then? Chainstate? I've never actually understood how the mempool ended up getting written to disk to survive restarts
10 2016-12-05 20:13:47 <sipa> on 0.13, it is not stored at all
11 2016-12-05 20:13:52 <sipa> in 0.14, it's stored in mempool.dat
12 2016-12-05 20:13:59 <arubi> wallet transactions survive restarts though
13 2016-12-05 20:14:17 <earlz> I guess wallet transactions would include rawtransactions involving your wallet's inputs?
14 2016-12-05 20:14:20 <arubi> and end up in mempool again when rebroadcast
15 2016-12-05 20:14:27 <arubi> yea
16 2016-12-05 20:14:47 <sipa> wallet transactions are any transaction listed with listtransactions
17 2016-12-05 20:14:57 <earlz> yea, so how do I clear the wallet inputs then? -zapwallettxs or soemthing similar?
18 2016-12-05 20:15:07 <arubi> that works
19 2016-12-05 20:15:09 <sipa> that will wipe unconfirmed wallet transactions
20 2016-12-05 20:15:10 <earlz> well, not wallet inputs.. but the rawtransaction trying to spend my wallet inputs
21 2016-12-05 20:15:21 <arubi> it's the same.  watched
22 2016-12-05 20:15:33 <sipa> using rawtransaction in this sentence doesn't make sense
23 2016-12-05 20:15:51 <sipa> there is a raw transaction api... but it deals with the same transactions like everything else
24 2016-12-05 20:15:52 <arubi> well to do segwit stuff you do use rawtransaction
25 2016-12-05 20:15:58 <sipa> no
26 2016-12-05 20:16:11 <arubi> hm, bare segwit
27 2016-12-05 20:16:27 <sipa> ah, yes
28 2016-12-05 20:16:48 <arubi> so the script is watched, and becomes a wallet tx even when rawtransaction is used
29 2016-12-05 20:17:00 <earlz> sipa: I'm using bitcoinjs to make a raw transaction. I imported my privkey and all into bitcoinjs to sign it all there, so I broadcast it by just using sendrawtransaction.. but I guess since it spends my wallet inputs it counts as a wallet transaction
30 2016-12-05 20:17:20 <arubi> earlz, using 'createwitnessadress' ?
31 2016-12-05 20:17:26 <earlz> no, not using witnesses
32 2016-12-05 20:17:31 <sipa> earlz: anything that affects your wallet balance is stored in the wallet
33 2016-12-05 20:17:36 <arubi> ohh
34 2016-12-05 20:18:59 <earlz> yep, zapwallettxes=1 fixed it. I didn't think about the raw transaction being considered part of my wallet
35 2016-12-05 20:20:14 <arubi> it's not that it is, the network is "changing" to affect your wallet, so you it watches it
36 2016-12-05 20:21:13 <arubi> you could broadcast it using another node (without the keys in the wallet), and it'll have the same effect
37 2016-12-05 20:21:18 <sipa> sendrawtransaction doesn't directly send things to your wallet
38 2016-12-05 20:21:33 <sipa> it just sends it to your local node, which processes it in the same way as if it's received from the network
39 2016-12-05 20:21:38 <sipa> right, arubi
40 2016-12-05 20:22:12 <earlz> ah, ok. That makes sense