ironfish icon indicating copy to clipboard operation
ironfish copied to clipboard

`accounts:rescan` runs forever

Open terrancewong opened this issue 2 years ago • 3 comments

What happened?

started a rescan in Aug. 12, still running extremely slow now Aug. 17.

 % time node ./ironfish-cli/bin/run accounts:rescan -v
Connecting to <path>/.ironfish/ironfish.ipc
Asking node to start scanning... done
Scanning Blocks: [========--------------------------------] 25246/123452 20% 1/sec | 89h 32m 5s
Scanning Blocks: [====================--------------------] 62516/123452 50% 0/sec | 357h 5m 5s
Scanning Blocks: [======================------------------] 69309/123452 56% 0/sec | 159h 10m 51s
Scanning Blocks: [======================------------------] 69315/123452 56% 1/sec | 138h 48m 46s

Version

v0.1.44

Debug output

% ./ironfish-cli/bin/ironfish debug
Database in use, skipping output that requires database.
Stop the node and run the debug command again to show full output.

Iron Fish version               0.1.44 @ src
Iron Fish library               0.0.21 @ src
Operating system                Linux x64
CPU model(s)                    AMD EPYC 7542 32-Core Processor
CPU threads                     64
RAM total                       1.22 TiB
Heap total                      4.01 GiB
Node version                    v16.15.0
ironfish in PATH                false
Garbage Collector Exposed       false
Telemetry enabled               false
Node name                       
Block graffiti                  bh9sqoCqIR3rDFstCCCw1g

Relevant log output

No response

Graffiti

bh9sqoCqIR3rDFstCCCw1g

terrancewong avatar Aug 17 '22 09:08 terrancewong

And it completed short,

 % time node ./ironfish-cli/bin/run accounts:rescan -v
Connecting to /home/asdf/.ironfish/ironfish.ipc
Asking node to start scanning... done
Scanning Blocks: [========--------------------------------] 25246/123452 20% 1/sec | 89h 32m 5s
Scanning Blocks: [====================--------------------] 62516/123452 50% 0/sec | 357h 5m 5s
Scanning Blocks: [======================------------------] 69309/123452 56% 0/sec | 159h 10m 51s
Scanning Blocks: [======================------------------] 69315/123452 56% 1/sec | 138h 48m 46s
Scanning Blocks: [=======================-----------------] 70790/123452 57% 0/sec | 277h 33m 7s
Scanning Complete
node ./ironfish-cli/bin/run accounts:rescan -v  2496.14s user 438.79s system 0% cpu 128:52:42.60 total

terrancewong avatar Aug 18 '22 05:08 terrancewong

We are about to update the accounts/wallet code. Will check in on this after the release to see if it persists.

lwisne avatar Aug 19 '22 14:08 lwisne

8 days to scan while node is running. with rescan --reset. went out of SYNC around the 7th day RAM usage was about 20 gb, CPU usage was 10-40% node 0.1.48. wallet 2.0 metal rig, Ryzen 3600, 32gb ram, 1tb nvme. Linux Mint, config:set blocksPerMessage 5

1-2 days to rescan --reset. if node off this was running node version .47 or .46 about a month ago.

t@t-B450NH:~/ironfish/ironfish-cli$ yarn ironfish accounts:rescan --reset
yarn run v1.22.19
$ /home/t/ironfish/node_modules/.bin/ironfish accounts:rescan --reset
Asking node to start scanning... done
Scanning Blocks: [========================================] 216678/216678 100% 1/sec | soon
Scanning Complete
Done in 678946.45s.

leoncryp avatar Oct 16 '22 06:10 leoncryp

Closing due to staleness. If the issue persists in versions 1.0.0+ - please file a new issue

holahula avatar Apr 20 '23 22:04 holahula