Sorry, just to clarify... you're saying that line 109 in that debug output is the transaction arriving from an exchange... correct? And that your Bitcoin Core kept running just fine after receiving that transaction?
Yes exactly, v0.21.0 and tx from a source other than NH goes through without problems.
What's interesting is that going back and looking at your previous debug... the AddToWallet output is actually quite a long way from the debug that indicates that Bitcoin Core is shutting down, it seems to be syncing a lot of blocks after it sees that transaction.
That's because I didn't have BitcoinCore running for the week when I wasn't home, and when I knew that the tx from NH had been received, I started BitcoinCore with first attempt v0.21.1 and after crash with v0.20.1. Then of course the previous days will be processed first.
Indeed the 2nd lot of debug here:
https://pastebin.com/sWZwFZV0 near the very end, it doesn't even seem to be receiving any new wallet transaction at all, it is just syncing blocks and then shuts down (line 920 onwards)
Correct, just to show that v0.21.0 runs without problems after I had previously syncronized the NH tx with v.0.20.1
line:
514 - start v0.21.1 attempt to sync NH tx
623 - crash just before NH tx
2021-05-21T02:38:23Z UpdateTip: new best=000000000000000000076abd974283d6f1ac6ee46e6275289b919a0b72578fb9 height=684340 version=0x3fffe004 log2_work=92.890824 tx=643673329 date='2021-05-20T18:13:01Z' progress=0.999835 cache=22.4MiB(168883txo)629 - restart with v0.20.1
733 - same entry as above but no crash
2021-05-21T02:42:49Z UpdateTip: new best=000000000000000000076abd974283d6f1ac6ee46e6275289b919a0b72578fb9 height=684340 version=0x3fffe004 log2_work=92.890824 tx=643673329 date='2021-05-20T18:13:01Z' progress=0.999843 cache=22.4MiB(168885txo) warning='89 der letzten 100 Blöcke haben eine unerwartete Version'734-735 - incoming tx from NH
806 - shut down
812-839 start - run - shutdown v0.21.1 without tx
The lines in second attempt are longer because a warning is appended to each line (unfortunately in German): warning = '89 of the last 100 blocks have an unexpected version'