Closed mortelli closed 4 years ago
the manifests part of this issue is still not complete, but the first iteration for the feeds part is ready, so i am requesting preliminary reviews from @zelig and @santicomp2014.
i am marking the testing task as complete due to the following reasons:
prod
tests have been updated after making use of the feed
functionshow about extracting the non-controversial parts in one or two PRs which we just merge?
* Targets type in trojan package * feed testutils and handler interface
then rebase this PR and we figure out contexts and how publisher gets in there etc
added PRs #2178 and #2179 for this.
thank you for the very appropriate suggestion
new related issue: #2180
new related issue: #2181
This PR is a WIP for the following task:
from issue #2161.
Implementation overview
NewRecoveryHook
constructor func now also receives a feeds handler as a param, so the actual recovery hook can use it for feeds.NewSwarm
function.prod.getPinners
func now extracts apublisher
string from thectx
param, gets the content from a feed using the address derived from the publisher, and unmarshals the content feed as targets to construct the trojan chunk.publisher
flag forswarm up
to register the publisher in the file manifestTasks