Propagate known transactions to new peers on connect

This commit is contained in:
obscuren
2015-02-04 17:28:54 -08:00
parent 292f7ada8e
commit 1d519854e2
6 changed files with 30 additions and 22 deletions

View File

@ -214,7 +214,7 @@ type FilterOptions struct {
Earliest int64
Latest int64
Address string
Topics []string
Topic []string
Skip int
Max int
}
@ -224,8 +224,8 @@ func toFilterOptions(options *FilterOptions) core.FilterOptions {
opts.Earliest = options.Earliest
opts.Latest = options.Latest
opts.Address = fromHex(options.Address)
opts.Topics = make([][]byte, len(options.Topics))
for i, topic := range options.Topics {
opts.Topics = make([][]byte, len(options.Topic))
for i, topic := range options.Topic {
opts.Topics[i] = fromHex(topic)
}