How does the minconf parameter for listaccounts method work? It appears to me that output is the same regardless of the value of minconf.
-
jasonkhanlar commented at 7:20 AM on December 31, 2010: none
-
gavinandresen commented at 2:28 PM on December 31, 2010: contributor
minconf=N only credits coins received that have N or more confirmations.
It still debits all sent coins, regardless of how many confirmations they have.
The reasoning is: you can't be 100% sure that coins you are receiving are single-spent. But you CAN be 100% sure that YOU are not trying to double-spend coins.
-
gavinandresen commented at 12:09 AM on January 13, 2011: contributor
You were right, I was wrong-- listaccounts N was completely broken.
I've got a PULL request that fixes it.
-
gavinandresen commented at 12:19 AM on January 14, 2011: contributor
Pull request is: https://github.com/bitcoin/bitcoin/issues#issue/27
- namecoin-qt referenced this in commit 6170266096 on Jun 13, 2013
- kac- referenced this in commit 154b52acaa on Mar 25, 2014
- kac- referenced this in commit 2746f875c9 on Jun 10, 2014
- zathras-crypto referenced this in commit c82f14750d on Jun 20, 2014
- rebroad referenced this in commit a2e69e4cb9 on Jul 21, 2014
- rdponticelli referenced this in commit 5355746867 on Nov 26, 2014
- sensorii referenced this in commit a631a4f425 on Jan 19, 2015
- rubensayshi referenced this in commit 1fbe0d6844 on Mar 16, 2015
- dexX7 referenced this in commit e687023daf on Apr 18, 2015
- TheBlueMatt referenced this in commit 8865ad96f6 on Oct 20, 2015
- brishtiteveja referenced this in commit 2d96236167 on Jan 25, 2016
- laanwj referenced this in commit cf44e4ca77 on Jun 13, 2017
- jameshilliard referenced this in commit 54411061e9 on Jun 14, 2017
- MarcoFalke referenced this in commit 2158205266 on Sep 29, 2017
- classesjack referenced this in commit 25fb908997 on Jan 2, 2018
- HashUnlimited referenced this in commit 4ebfc2a376 on Mar 6, 2018
- CryptAxe referenced this in commit f5340756eb on Mar 11, 2018
- KrzysiekJ referenced this in commit 228b3a9d89 on Mar 28, 2018
- effectsToCause referenced this in commit fc6cb858fe on Jun 22, 2018
- MarcoFalke referenced this in commit fa0b3da36c on Oct 30, 2019
- laanwj referenced this in commit b586bbd558 on Nov 6, 2019
- laanwj referenced this in commit 97b66d34eb on Nov 7, 2019
- laanwj referenced this in commit e9c85bb139 on Nov 7, 2019
- laanwj referenced this in commit c92f7af618 on Nov 7, 2019
- laanwj referenced this in commit 89e93135ae on Nov 10, 2019
- laanwj referenced this in commit 656712fe94 on Dec 9, 2019
- laanwj referenced this in commit 4abd92d5c4 on Dec 12, 2019
- Warchant referenced this in commit 7958da26e8 on Dec 31, 2019
- laanwj referenced this in commit 89c8fe5189 on Jan 2, 2020
- laanwj referenced this in commit 66480821b3 on Jan 28, 2020
- MarcoFalke referenced this in commit 5e1728017b on Feb 9, 2020
- phm87 referenced this in commit 28e6c4a2d8 on Jun 16, 2020
- KolbyML referenced this in commit c40279a37c on Aug 1, 2020
- laanwj referenced this in commit 924a4ff7eb on Oct 29, 2020
- KolbyML referenced this in commit 3d9f0283ff on Dec 5, 2020
- MarcoFalke referenced this in commit bce09da122 on Apr 28, 2021
- MarcoFalke referenced this in commit eb9a1fe037 on May 7, 2021
- MarcoFalke referenced this in commit c857148636 on May 15, 2021
- rajarshimaitra referenced this in commit 47b6121e52 on Aug 5, 2021
- DrahtBot locked this on Sep 8, 2021
Contributors
Linked (view graph)
#737 Deadlock during startup (Appears to be AddAddress / DNSSeed related)#982 Startup blocks on mutex at "Loading Addresses"#999 v0.6.0rc5 segfault on initial blockchain download when out of diskspace#1098 segfault in qrcode message dialog#2472 System error: database corrupted: void boost::recursive_mutex::lock(): Assertion `!pthread_mutex_lock(&m)' failed#5698 Code vulnerable to segfault after a network fork#5795 Bizarre test_bitcoin crash, but passes in debugger#6332 Segmentation fault on bitcoind or bitcoin-qt startup (64bit Linux)#6540 scheduler_tests (currently disabled) occasionally deadlocks#8984 GUI hangs during sync#9687 bitcoin-qt crashed in FinalizeNode()#9759 Setting -maxsigcachesize to zero causes segfault#9883 [Qt] Segfault on startup#9997 Running out of disk space during GUI init results in hang and non-drawing windows#10209 Stalled shutdown#10293 SEGV in segwit fundrawtransaction#10861 Segfault on shutdown after pressing 'q' to postpone utxo db upgrade#11355 LevelDB read failure: Corruption: block checksum mismatch#11763 deadlock on shutdown#12038 deadlock on database corruption#12279 shutdown took 8 minutes in v0.15.0.1#13316 make check fails for configure option --with-incompatible-bdb and Berkeley DB 5.3#14330 [tests] segfault during`DEBUG=1` run of existing_data_no_obfuscate locally#14349 mac: make check failure on macOS 10.14#14923 segmentation fault on gui startup#15227 bitcoind terminated with uncaught exception if configure --debug-enabled#15310 gui: crash if encrypt / change passphrase window is open and wallet is unloaded#15379 bitcoind crashes after exception in scheduler thread#17427 qt: Fix missing qRegisterMetaType for size_t#17540 ci build fails in ./qt/test/test_bitcoin-qt on aarch64 native tsan#18362 gui: segfault unloading and immediately reloading wallet with gui#18372 sanitizer: heap-use-after-free in checkinputs_test#18913 ci: fuzz/process_message fails#19024 UB: double lock of mutex in init.cpp#19448 qa: Data race detected when running `mempool_expiry.py`#20163 TSAN race after merge of #20090#20242 fuzz: Properly initialize PrecomputedTransactionData#20334 ci: fuzz/decode_tx fails#20542 Unexpected test fail: wallet/wallet.cpp:3113:51: runtime error: division by zero#20618 Data race in interface_zmq.py#21466 Avoid use of "socket" syscall when formatting IP addresses in CNetAddr::ToString#21632 MemorySanitizer: use-of-uninitialized-value in sqlite3BtreeOpen#21773 fuzz: Ensure prevout is consensus-valid#21802 refactor: Avoid UB in util/asmap (advance a dereferenceable iterator outside its valid range)#21948 test: Fix off-by-one in mockscheduler test RPC#22548 CheckQueue_Correct_Random data race#23321 bitcoind segfault's while loading tr descriptor on regtest v22.0#24290 segfault when compiled with depends DEBUG=1 and libc++#24426 test: Fix intermittent Tsan issue#25077 Fix chain tip data race and corrupt rest response#25146 Starting with an unsupported wallet configured leads to a segfault (master only?)#25323 miniscript fuzzer failing after qa-assets update#25365 ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) in BaseIndex#25632 SUMMARY: ThreadSanitizer: SEGV src/index/base.cpp:388:9 in BaseIndex::SetBestBlockIndex(CBlockIndex const*)::$_1::operator()() const#25857 IBD core dumped during recursive call to CCoinsViewCache::FetchCoin (while connecting best chain tip)#26068 Segmentation fault in the scheduler thread when an index fails to commit to the db#26274 bitcoind dumps core when deriveaddresses is called with index 2147483647 (2^31-1)#26477 validation: fix broken maxtipage comparison#27222 test: use-of-uninitialized-value in sqlite3Strlen30#27354 wallet: Data race in GetOrCreateLegacyScriptPubKeyMan vs IsMine#27355 index: ThreadSanitizer: data race on vptr #27360 ci: use LLVM/clang-16 in native_asan job#27582 TSAN: lock-order-inversion (potential deadlock) in ZapSelectTx test#27922 ci: fix llvm-symbolizer in MSAN jobs#28510 migratewallet crashes on an freshly created datadir ( wallet/wallet.h:959: int wallet::CWallet::GetLastBlockHeight() const: Assertion `m_last_block_processed_height >= 0' failed.)#28665 'std::out_of_range' crash in I2P fuzz test#28917 fuzz, parse_iso8601: attempt to dereference an end-of-stream istreambuf_iterator#28918 fuzz, coinselection: Assertion 'result_bnb->GetChange(coin_params.m_cost_of_change, CAmount{0}) == 0' failed#28969 fuzz: Avoid signed-integer-overflow in wallet_notifications fuzz target#29153 new crash in v26.0#29178 ubsan: misaligned-pointer-use in crc32c/src/crc32c_arm64.cc#29767 ThreadSanitizer: data race src/flatfile.cpp:47:13 in FlatFileSeq::Open(FlatFilePos const&, bool)#29908 test: SegFault in `ismine_tests` on SunOS / illumos#30284 Mini miner `AncestorFeerateComparator` Signed Integer Overflow#30402 Illegal Instruction in `CoinStatsIndex::CustomAppend`#31234 fuzz: connman target: terminate called after throwing an instance of 'std::bad_alloc'#32173 validation: `CheckBlockIndex` crashes during block reconsideration#32780 lsan: add more Qt suppressions#32957 SegFault in QSortFilterProxyModelPrivate::build_source_to_proxy_mapping#33150 intermittent TSAN failure in lockmanager_tests::blockmanager_readblock_hash_mismatch#33277 intermittent Segmentation fault in mptest IPC path (callFnAsyncParams)#33964 Startup crash on macOS with GCC 15.2: `std::source_location::file_name()` is `nullptr`#34014 mptest hangs, when run in a loop#34110 scriptpubkeyman fuzz target creates Base58 too large; Fails on 32-bit (armhf, ...)#34645 oss-fuzz: coins_view_overlay: ASSERT: m_dirty_count == 0#34655 fuzz: keep `coins_view` fuzzers within caller contracts#34732 i386 segv in #0 0xf7a49ce0 in kj::operator*(kj::_::Stringifier, kj::Exception const&) (/lib/i386-linux-gnu/libkj-1.1.0.so+0x38ce0)#34734 test: Fix shutdown vptr race in BlockFilterIndexSync bench#34777 ipc: AddressSanitizer: heap-use-after-free in `capnp::CallContext<ipc::capnp::messages::BlockTemplate::GetBlockParams, ipc::capnp::messages::BlockTemplate::GetBlockResults>::getParams()`#34782 mptest: mp::CancelMonitor: AddressSanitizer: stack-use-after-return