DAO Rescue soft fork (#1309)

* DAO Rescue soft fork

* Address minor issues.

* Fix tests.
This commit is contained in:
Gav Wood
2016-06-17 22:15:18 +02:00
committed by arkpar
parent 76b413b5f7
commit 42478add64
5 changed files with 29 additions and 1 deletions

View File

@@ -134,6 +134,7 @@ fn transaction_error(error: EthcoreError) -> Error {
format!("Transaction cost exceeds current gas limit. Limit: {}, got: {}. Try decreasing supplied gas.", limit, got)
},
InvalidGasLimit(_) => "Supplied gas is beyond limit.".into(),
DAORescue => "Transaction removes funds from a DAO.".into(),
};
Error {
code: ErrorCode::ServerError(error_codes::TRANSACTION_ERROR),