rpc: fixes for better type handlings, explicit error field in response, more tests

This commit is contained in:
Ethan Buchman
2015-03-27 13:15:59 -07:00
parent 9aeafffd9b
commit 6e81e8a848
6 changed files with 198 additions and 45 deletions

View File

@ -16,7 +16,6 @@ func SignTx(tx types.Tx, privAccounts []*account.PrivAccount) (types.Tx, error)
return nil, fmt.Errorf("Invalid (empty) privAccount @%v", i)
}
}
switch tx.(type) {
case *types.SendTx:
sendTx := tx.(*types.SendTx)