Fixed many bugs with wallet/validation/blockchain