2019-10-09 14:22:53 +00:00
|
|
|
package gethbridge
|
|
|
|
|
|
|
|
import (
|
2019-11-23 17:57:05 +00:00
|
|
|
"github.com/status-im/status-go/eth-node/types"
|
2019-12-09 10:36:14 +00:00
|
|
|
"github.com/status-im/status-go/whisper/v6"
|
2019-10-09 14:22:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// GetGethSyncMailRequestFrom converts a whisper SyncMailRequest struct from a SyncMailRequest struct
|
2019-11-23 17:57:05 +00:00
|
|
|
func GetGethSyncMailRequestFrom(r *types.SyncMailRequest) *whisper.SyncMailRequest {
|
2019-10-09 14:22:53 +00:00
|
|
|
return &whisper.SyncMailRequest{
|
|
|
|
Lower: r.Lower,
|
|
|
|
Upper: r.Upper,
|
|
|
|
Bloom: r.Bloom,
|
|
|
|
Limit: r.Limit,
|
|
|
|
Cursor: r.Cursor,
|
|
|
|
}
|
|
|
|
}
|