Bitcoin Forum
May 13, 2024, 01:55:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: -importaddress takes >20min  (Read 151 times)
Kulahin (OP)
Newbie
*
Offline Offline

Activity: 68
Merit: 0


View Profile
November 19, 2019, 08:27:16 PM
 #1

hello, why -importaddress is so slow ? i have SSD NVMe Pcie4x4 Aourus 2TB ~5gbit read speed and intel i9 processor, speed maximum is 100mb read
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715608513
Hero Member
*
Offline Offline

Posts: 1715608513

View Profile Personal Message (Offline)

Ignore
1715608513
Reply with quote  #2

1715608513
Report to moderator
1715608513
Hero Member
*
Offline Offline

Posts: 1715608513

View Profile Personal Message (Offline)

Ignore
1715608513
Reply with quote  #2

1715608513
Report to moderator
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
November 19, 2019, 09:46:37 PM
Merited by ABCbits (1)
 #2

Quote
importaddress "address" ( "label" rescan p2sh )

Note: This call can take over an hour to complete if rescan is true

Arguments:
1. address    (string, required) The Bitcoin address (or hex-encoded script)
2. label      (string, optional, default="") An optional label
3. rescan     (boolean, optional, default=true) Rescan the wallet for transactions
4. p2sh       (boolean, optional, default=false) Add the P2SH version of the script as well
Sounds like 20 minutes is better than 1 hour! Wink If you don't explicitly specify the rescan parameter as "false"... then every time you use the importaddress commmand, it will rescan the entire blockchain looking for transactions that relate to that address.

So, if you're importing multiple addresses, you should specify "rescan" as "false" until you get to the last address that you want to import... then specify that as "true" and it will rescan ALL of them at the same time.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
R.I.U. iol
Newbie
*
Offline Offline

Activity: 15
Merit: 2


View Profile
November 19, 2019, 10:05:06 PM
 #3

Because it scans the entire blockchain to see what transactions have an outout to to that address, so you can see it's balance and UTXO.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!