Fixed some whisper issues

This commit is contained in:
obscuren
2015-01-08 21:41:32 +01:00
parent 5f958a582d
commit 4a0ade4788
6 changed files with 36 additions and 23 deletions

View File

@ -2,6 +2,7 @@ package whisper
import (
"crypto/ecdsa"
"fmt"
"time"
"github.com/ethereum/go-ethereum/crypto"
@ -53,6 +54,7 @@ type Opts struct {
}
func (self *Message) Seal(pow time.Duration, opts Opts) (*Envelope, error) {
fmt.Println(opts)
if opts.From != nil {
err := self.sign(opts.From)
if err != nil {