core: fix tests

This commit is contained in:
Felix Lange
2015-03-18 13:38:47 +01:00
parent b5b83db450
commit a59dd393e7
5 changed files with 13 additions and 19 deletions

View File

@ -63,7 +63,7 @@ func NewTxPool(eventMux *event.TypeMux) *TxPool {
func (pool *TxPool) ValidateTransaction(tx *types.Transaction) error {
// Validate sender
if _, err := tx.From(); err != nil {
return err
return ErrInvalidSender
}
// Validate curve param
v, _, _ := tx.Curve()