fix unconfirmed balance

if wallet contains conflicted transactions
leveldb updates
leveldb updates
leveldb updates
leveldb updates
leveldb updates
more leveldb updates
Revert "leveldb updates"

This reverts commit 4cfc709d814072bb87878431470062ba040398d5.
Revert "leveldb updates"

This reverts commit 561f59eeaa17b968259b04d803fe2dde0183107e.
leveldb updates
git bug replace leveldb changes
new leveldb
replace 520 constant

with MAX_SCRIPT_ELEMENT_SIZE
redeemscript not to exceed 520byte limit