status-go/eth-node/bridge/geth/syncmailrequest.go

18 lines
453 B
Go
Raw Normal View History

package gethbridge
import (
"github.com/status-im/status-go/eth-node/types"
whisper "github.com/status-im/whisper/whisperv6"
)
// GetGethSyncMailRequestFrom converts a whisper SyncMailRequest struct from a SyncMailRequest struct
func GetGethSyncMailRequestFrom(r *types.SyncMailRequest) *whisper.SyncMailRequest {
return &whisper.SyncMailRequest{
Lower: r.Lower,
Upper: r.Upper,
Bloom: r.Bloom,
Limit: r.Limit,
Cursor: r.Cursor,
}
}