OSDN Git Service

Merge branch 'master' into small_edit
[bytom/vapor.git] / protocol / validation / tx.go
index 58bbfc5..bf925b3 100644 (file)
@@ -587,6 +587,14 @@ type validateTxResult struct {
        err       error
 }
 
+func (r *validateTxResult) GetGasState() *GasState {
+       return r.gasStatus
+}
+
+func (r *validateTxResult) GetError() error {
+       return r.err
+}
+
 func validateTxWorker(workCh chan *validateTxWork, resultCh chan *validateTxResult, closeCh chan struct{}, wg *sync.WaitGroup) {
        for {
                select {