Wallet Balance of 0.00000000 after I cleared Spynode and ran sync --nostop 4.5 hrs which found correct funds then but not on subsequent syncs and outputs.json has null

UPDATE: I decided to clear outputs.json and spynode folder yet again,
and then I ran sync (without the --nostop arg).
This time it rebuilt outputs.json correctly and
now the wallet balance has been corrected calculated.
And sync reports 74 peers although it does not list the IP of each peer
unlike in sync --nostop where it lists the IP address of each peer it finds.
So that is a bit confusing about when to use the --nostop and
it seems to be useful to use --nostop in order to find out if peers are being successfully found.
If you run sync without --nostop then you will not get any info about how the peer searching is
performing well or not, except for the grand total summary peer count at the end.

Nonetheless, there appears to a situation where outputs.json become null after sync --nostop it seems
and that situtation I have detailed below:

My outputs.json just has null in it now.
So I am guessing my big sync --nostop somehow did not write correct data to outputs.json.

Just before wiping spynode folder and doing full sync for 4.5 hours it was balance of 0.00087666:
2020/06/08 01:53:36.092942 [Main] wallet.go:155 Info - Loaded unspent output 0.00083635 : 296e28c0931c33288a3d5afda347f56d760fd863b954e384a85273e0f3a83d17:2
2020/06/08 01:53:36.093418 [Main] wallet.go:155 Info - Loaded unspent output 0.00004031 : 5dbcea4e1a68c4654407bcf51437fa9877db5cc91693904a07fbad668b4428ca:2
2020/06/08 01:53:36.093561 [Main] wallet.go:161 Info - Loaded wallet with 4 outputs, 2 unspent, and balance of 0.00087666
2020/06/08 01:53:36.096797 [Main] wallet.go:164 Info - Wallet address : 16GgqN2sWSTZAZobNkR6uLVUUmD8LnnSPM
2020/06/08 01:53:36.096893 [Main] node.go:114 Info - Contract address : 1QAinrbEfjv46jdpwZcqc1nB4tWH9AE8in
2020/06/08 01:53:36.097239 [SpyNode] peers.go:94 Verbose - Loaded 61 peers
2020/06/08 01:53:45.991517 [SpyNode] node.go:112 Info - Loaded blocks to height 638431
2020/06/08 01:53:45.991837 [SpyNode] node.go:116 Info - Start block height 560000


But now it is balance of 0.00000000:
I guess the problem is because it Loaded 0 peers and / or outputs.json only has null in it.
So I will have to continue fighting with sync --nostop until it finally finds some peers?

2020/06/09 15:35:18.926462 [Main] wallet.go:161 Info - Loaded wallet with 0 outputs, 0 unspent, and balance of 0.00000000
2020/06/09 15:35:18.927000 [Main] wallet.go:164 Info - Wallet address : 16GgqN2sWSTZAZobNkR6uLVUUmD8LnnSPM
2020/06/09 15:35:18.927160 [Main] node.go:114 Info - Contract address : 1QAinrbEfjv46jdpwZcqc1nB4tWH9AE8in
2020/06/09 15:35:18.927580 [SpyNode] peers.go:94 Verbose - Loaded 0 peers
2020/06/09 15:35:23.892723 [SpyNode] node.go:112 Info - Loaded blocks to height 638655
2020/06/09 15:35:23.893102 [SpyNode] node.go:116 Info - Start block height 560000
2020/06/09 15:35:23.893248 [SpyNode] transactions.go:45 Verbose - lypka No unconfirmed txs to load
2020/06/09 15:35:23.893373 [SpyNode] node.go:151 Verbose - Connecting to 127.0.0.1:8333
2020/06/09 15:35:23.898420 [SpyNode] node.go:862 Info - Safe tx delay : 10 ms
2020/06/09 15:35:23.898684 [SpyNode] version.go:31 Verbose - (127.0.0.1:8333) Version : /Bitcoin SV:1.0.1/ protocol 70015, blocks 638655
2020/06/09 15:35:23.899052 [SpyNode] node.go:707 Verbose - ReadMessage : Unknown Command : protoconf
2020/06/09 15:35:23.900152 [SpyNode] headers.go:57 Info - Headers in sync at height 638655
2020/06/09 15:35:23.900216 [SpyNode] headers.go:64 Info - Blocks in sync at height 638655
2020/06/09 15:35:24.066365 [Main] node.go:380 Info - No new blocks found
2020/06/09 15:35:24.066578 [Main] node.go:384 Info - Balance : 0.00000000
2020/06/09 15:35:28.899191 [SpyNode] node.go:900 Verbose - Found 0 peers with no score
2020/06/09 15:55:26.146248 [Main] node.go:268 Info - New block (638656) : 00000000000000000243e9cbf7fa4e0f5ca5bb36fa2758259c9a261d3b8476d7

AFTER MORE RESEARCH, I SEE Balance : 0.00086954 was found in my sync --nostop which I ran
immediately after deleting the spynode folder and json on the day before on June 8:
This is the reduced Wallet Balance following the successful Build --tx --send of my ContractOffer a few days before on June 7.

2020/06/08 22:20:29.477521 [Main] node.go:265 Info - Added 100 blocks to height 638099
2020/06/08 22:21:02.295329 [Main] node.go:265 Info - Added 100 blocks to height 638199
2020/06/08 22:21:29.681172 [Main] node.go:265 Info - Added 100 blocks to height 638299
2020/06/08 22:21:31.638865 [Main] node.go:590 Info - Matches PaymentToContract : a989046750338af09522bfa25fe146f40d968aff8cdcc868338aa340acb3400e
2020/06/08 22:21:31.668063 [Main] node.go:309 Info - Tx confirmed : a989046750338af09522bfa25fe146f40d968aff8cdcc868338aa340acb3400e
2020/06/08 22:21:31.683580 [Main] node.go:338 Info - Sent 0.00083635 : a989046750338af09522bfa25fe146f40d968aff8cdcc868338aa340acb3400e
2020/06/08 22:21:31.707962 [Main] node.go:358 Info - Received 0.00078606 : 2 of a989046750338af09522bfa25fe146f40d968aff8cdcc868338aa340acb3400e
2020/06/08 22:21:31.708423 [Main] node.go:590 Info - Matches PaymentToWallet : 48f8a5d81d0cb386abdf8d6d50b01332179e867b05288d44de66aeae88f72a8e
2020/06/08 22:21:31.708504 [Main] node.go:309 Info - Tx confirmed : 48f8a5d81d0cb386abdf8d6d50b01332179e867b05288d44de66aeae88f72a8e
2020/06/08 22:21:31.708590 [Main] node.go:358 Info - Received 0.00004317 : 0 of 48f8a5d81d0cb386abdf8d6d50b01332179e867b05288d44de66aeae88f72a8e
2020/06/08 22:22:01.307214 [Main] node.go:265 Info - Added 100 blocks to height 638399
2020/06/08 22:22:28.352579 [Main] node.go:265 Info - Added 100 blocks to height 638499
2020/06/08 22:22:41.600249 [SpyNode] headers.go:57 Info - Headers in sync at height 638534
2020/06/08 22:22:41.600652 [SpyNode] headers.go:64 Info - Blocks in sync at height 638534
2020/06/08 22:22:41.753946 [Main] node.go:382 Info - Synchronized 78535 new block(s) to height 638534
2020/06/08 22:22:41.754314 [Main] node.go:384 Info - Balance : 0.00086954
2020/06/08 22:22:44.399351 [SpyNode] node.go:900 Verbose - Found 80 peers with no score
2020/06/08 22:22:44.459151 [SpyNode] node.go:905 Verbose - Scanning 1000 peers
2020/06/08 22:22:44.791100 [SpyNode] untrusted_version.go:31 Verbose - ([47.90.246.229]:8333) Version : /Bitcoin SV:1.0.3/ protocol 70015, blocks 638534
2020/06/08 22:22:44.808577 [SpyNode] untrusted_version.go:31 Verbose - ([23.160.194.91]:8333) Version : /Bitcoin SV:1.0.2/ protocol 70015, blocks 638534
2020/06/08 22:22:44.885578 [SpyNode] untrusted_version.go:31 Verbose - ([23.92.74.110]:8333) Version : /Bitcoin SV:1.0.4/ protocol 70015, blocks 638534
2020/06/08 22:22:44.903973 [SpyNode] untrusted_version.go:31 Verbose - ([35.182.63.137]:8363) Version : /Bitcoin ABC:0.17.1(EB32.0)/ protocol 70015, blocks 556767
2020/06/08 22:22:44.908782 [SpyNode] untrusted_version.go:31 Verbose - ([52.116.159.246]:8333) Version : /Bitcoin ABC:0.21.2(EB32.0)/ protocol 70015, blocks

BUT all subsequent runs of sync do not report that Wallet funding.
They all report Balance 0:
So then my Build --tx of my AssetDefinition fails due to lack of funds!
But actually my Wallet does have enough funds!

[email protected]:~/go/src/github.com/tokenized/smart-contract$ source ./conf/service-envs/covid19greenlight_cli.env && go run ./cmd/smartcontract/main.go build A1 ./covid19greenlight_asset_definition_SHC2.json --tx
How many voting systems are in the contract: 1
Checking Asset Definition
2020/06/09 17:22:50.933181 [Main] wallet.go:161 Info - Loaded wallet with 0 outputs, 0 unspent, and balance of 0.00000000
2020/06/09 17:22:50.933299 [Main] wallet.go:164 Info - Wallet address : 16GgqN2sWSTZAZobNkR6uLVUUmD8LnnSPM
2020/06/09 17:22:50.933330 [Main] node.go:114 Info - Contract address : 1QAinrbEfjv46jdpwZcqc1nB4tWH9AE8in
Response estimated : 324 bytes, 1546 funding
Insufficient balance for tx fee 0.00000096 : balance 0.00000000

My best guess is that you are not stopping --nostop properly so it is not saving data.