Git Product home page Git Product logo

Comments (5)

lukechampine avatar lukechampine commented on June 15, 2024

I wonder how best to handle this. We could prompt during formation, e.g.:

$ user contracts form x y z
WARNING: You already have a contract with that host (abc-def.contract).
Press ENTER to archive that contract and proceed, or Ctrl-C to abort.

or we could archive automatically and print a message notifying the user what happened.

from user.

grigzy28 avatar grigzy28 commented on June 15, 2024

Now archiving the original contract would still hold up the funds until the contract expires on the blockchain. I think the option of being able to abort formation would be useful in that instance, unless maybe the program does a tattle of that contract? Offering to do that could be an option thus preventing the scenario of two active contracts with a single host.

from user.

lukechampine avatar lukechampine commented on June 15, 2024

good point. I think prompting the user is the way to go. And instead of automatically archiving, it should just tell the user that they'll need to disable one of the contracts before uploading or downloading.

tattle will submit a revision, but you still won't get your money back until the contract ends, so it doesn't help much here.

from user.

grigzy28 avatar grigzy28 commented on June 15, 2024

I mistakenly used tattle in the previous example. I had meant the renew command. But also in this case I think telling the user to that there is an already existing contract is probably the best way to go, even offering to renew the existing contract would require the end user to input some data as well as if they just renewed manually.

from user.

vargrant avatar vargrant commented on June 15, 2024

I think we must to have settings like minimal and maximal redunancy. Also we must to have own statistics by all contracts for all times. In case if we will have situation when we will have "duplicate contracts" (i mean that same chunk will be uploaded to several hosts) then we must to reduce redunancy to our maximal_level_of_redunancy. But we need to select which hosts can delete our data - here we can use our own time statistics for a contract. We have 3 wasy for posibillity to select good hosts - cheapest contract (low price storage, low upload, low price download) or hight perforamce (we can use our real data which we can to have in process of usage this contracts in previous time) or stabily of host (i think this must be preffered way by default, beucase previous 2 ways must be already used on previous steps when we created contracts). So we have 3 ways - then we can provide this option for users like a settings from command line or configuration file.

from user.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.