Git Product home page Git Product logo

muse's Introduction

muse

GoDoc Go Report Card

muse is a contract server for Sia. It provides contracts to apps like user so that they can store and retrieve files on Sia hosts. This means that you can administrate your contracts (choose hosts, form contracts with them, and renew those contracts periodically) in a single place and use them on any of your devices. Alternatively, you can offload this responsibility to a third party who runs a muse server on your behalf.

To run a muse server, you will need access to a shard server (to lookup host IP addresses) and a walrus server (to fund contract transactions). For convenience, I run public instances of these services. My shard server address is http://shard.lukechampine.com, and you can get a personal walrus server by visiting https://narwal.lukechampine.com.

To communicate with your muse server, you can use the musec CLI client, or interface with the API directly. API documentation can be found here.

muse's People

Contributors

eriner avatar jkawamoto avatar lukechampine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

pdxwebdev

muse's Issues

Forming a contract takes a long time

I'm not sure what's going on but forming a contract takes at least one minute and sometimes takes more than one hour:
2020-09-08

An elapsed time in the above image shows how long one Client.Form took.

Question about scalability

The server has all contracts with a slice and searches a contract sequentially. It might cause a performance issue if the client forms tens of thousands of contracts. Is there any plan to use some scalable database instead?

siad v1.5.7 breaks tests

I've just found siad v1.5.7 breaks tests, and I got this panic error.

=== RUN   TestServer
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x14e47d0]

goroutine 32 [running]:
lukechampine.com/muse.(*Host).handleConn(0xc0000a0dc0, {0x1638398, 0xc0000b6100})
        /Users/junpei/src/github.com/lukechampine/muse/muse_test.go:275 +0x630
created by lukechampine.com/muse.(*Host).listen
        /Users/junpei/src/github.com/lukechampine/muse/muse_test.go:229 +0x30

Does it change the protocol?

contract transaction was not accepted transaction set is too large for this transaction pool

We get many of this warning here

muse/server.go

Line 149 in ce8e221

log.Println("WARN: contract transaction was not accepted", submitErr)

Ideally, it'd be fine because at least the host could broadcast the contract transaction before responding to the form request. However, we also get no contract record error from hosts, which means the host doesn't have the contract.
If a transaction set is too large for our transaction pool, it seems too large for the host's transaction pool because a host would receive more transactions than a renter has.

Would it be possible that both renter and host don't broadcast the contract transaction but finish the protocol without any error? Then, the host doesn't store the contract but the renter keeps it as an active contract.

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.