getTotalValue refactoring (needs review!)
Merge branch 'master' of github.com:chromaway/cc-wallet-core