Bitcoin Forum
June 16, 2024, 04:53:47 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2]
21  Bitcoin / Project Development / Re: The Bitcoin Lottery on: June 11, 2011, 10:43:49 PM
Good Idea!

But it must be optimized. What will happen if 10 people win 200% of their bet?
The server account would be empty and the server will not be able to payout the winning values.

What about:

0-50: LOSE
51-69: 5% of Jackpot
70-80: 10% of Jackpot
80-90: 25% of Jackpot
91-99: 50% of Jackpot
100   : JACKPOT!

In that case the winnig profit is bind to the server's account balance.


and btw: Lucker! +1 win to your account  Shocked


Er... "breaking the bank" is a risk that you, the "house" have to take. That's why we allow you to take vigorish (transaction fees). If you're worried about your risk, look at how Keno pays out, or roulette, or craps. Depending on how much risk you want to take as the "house" you can choose which sort of weights you want on winnings. Craps has the lowest payouts for the house, keno the most (13 cents on 100 dollars for craps, 13+ dollars on a hundred dollars for keno)

If you need some help setting your tiered bets up properly i might be able to help you, as long as you don't screw the algorithm up i'd recommend having about 10-100 times more than the maximum bet amount in your "house bank" to ride out statistical anomalies. It'll all work out in the houses favor in the end (and should, since they're paying the bills) - but it can get real choppy if luck goes to your players for a dozen hands :-)

22  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL on: June 11, 2011, 10:36:14 PM
The php pages aren't showing any worker stats even though a worker is connected to the pushpoold backend using the username and password set on the account details page. Did i screw a database step up?

sounds like the workers.php cronjob isn't running. this updates that stat.

Nah, it's like the database for pushpool can't see the database for simplecoin and vice versa, because my worker is connected and has done 800 shares, but neither the main hasrate nor my account details have any indication that any work has been done - IE no payment. Is there something i am missing? there's no documentation for any of this stuff!!!
23  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL on: June 11, 2011, 07:36:17 PM
The php pages aren't showing any worker stats even though a worker is connected to the pushpoold backend using the username and password set on the account details page. Did i screw a database step up?

edit: i ran all the cronjob/*.php stuff just to make sure.
24  Bitcoin / Bitcoin Technical Support / Re: Pushpool - Tech Support | Web design donation pot: 4.15 BTC on: June 11, 2011, 07:17:51 PM
ignore my earlier plea for help, now pushpoold is starting, and bitcoind is running.
i am getting ustream RPC error on the miner, and
Code:
JSON protocol request:
{"method": "getwork", "params": [], "id":26}

* About to connect() to 127.0.0.1 port 8332 (#0)
*   Trying 127.0.0.1... * TCP_NODELAY set
* connected
* Connected to 127.0.0.1 (127.0.0.1) port 8332 (#0)
* Server auth using Basic with user 'rpcproxy'
> POST / HTTP/1.1
Authorization: Basic cnBjcHJveHk6bG9vcHAwMGxQdXNo
Host: 127.0.0.1:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-type: application/json
Content-Length: 46

* The requested URL returned error: 500
* Closing connection #0

server.json
Code:
{
        # network ports
        "listen" : [
                # binary protocol (default), port 8336
#               { "port" : 8336 },

                # HTTP JSON-RPC protocol, port 8337
                { "port" : 8337, "protocol" : "http-json" },

                # HTTP JSON-RPC protocol, port 8339,
                # with trusted proxy appserver.example.com forwarding
                # requests to us
                { "port" : 8339, "protocol" : "http-json",
                  "proxy" : "derp.com" },

                # binary protocol, localhost-only port 8338
                { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
        ],

        # database settings
        "database" : {
                "engine" : "mysql",

                # 'host' defaults to localhost, if not specified
#               "host" : "mysql.example.com",

                # 'port' uses proper default port for the DB engine,
                # if not specified
#               "port" : 12121,

                "name" : "sc",
                "username" : "pushpool",
                "password" : "hurpadurp",

                "stmt.pwdb" :
                  "SELECT password FROM pool_worker WHERE username = ?"
        },

        # cache settings
        "memcached" : {
                "servers" : [
                        { "host" : "127.0.0.1", "port" : 11211 }
                ]
        },

        "pid" : "/tmp/pushpoold.pid",

        # overrides local hostname detection
        "forcehost" : "localhost.localdomain",

        "log.requests" : "/tmp/request.log",
        "log.shares" : "/tmp/shares.log",

        # the server assumes longpolling (w/ SIGUSR1 called for each blk)
        "longpoll.disable" : false,

        # length of time to cache username/password credentials, in seconds
        "auth.cred_cache.expire" : 75,

        # RPC settings
        "rpc.url" : "http://127.0.0.1:8332/",
        "rpc.user" : "rpcproxy",
        "rpc.pass" : "hurpadurp",

        # rewrite returned 'target' to difficulty-1?
        "rpc.target.rewrite" : true

and bitcoin.conf
Code:
 # JSON-RPC options (for controlling a running Bitcoin/bitcoind process)

 # server=1 tells Bitcoin to accept JSON-RPC commands.
 server=1

 # You must set rpcuser and rpcpassword to secure the JSON-RPC api
 rpcuser=rpcproxy
 rpcpassword=hurpadurp

 # How many seconds bitcoin will wait for a complete RPC HTTP request.
 # after the HTTP connection is established.
 rpctimeout=30

 # By default, only RPC connections from localhost are allowed.  Specify
 # as many rpcallowip= settings as you like to allow connections from
 # other hosts (and you may use * as a wildcard character):
 #rpcallowip=[i][b]I ASSUME LOCALHOST IS ON BY DEFAULT[/b][/i]
 #rpcallowip=192.168.1.*

 # Listen for RPC connections on this TCP port:
 rpcport=8332

links http://127.0.0.1:8332/
user rpcproxy
pass hurpadurp
Code:
{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}
25  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL on: June 11, 2011, 06:18:34 PM
i noticed that there wasn't much in the way of input sanitizing, but that was at a cursory glance and not being an expert on such things.
I will install phpmyadmin to edit the database so i don't have to use sql to do it. Thanks for the tip.

I'm hoping that pushpool will work on Natty, today. :-)

edit: please advise. Do i set the pushpool databasename to the same one simplecoin is using or are they seperate databases? IE i call my database simcoi for simplecoin, should i make another database called ppool for pushpool or point it at simcoi?

Ok i think i have to go talk to pushpool people now. Thanks for bearing with me :-)
26  Bitcoin / Project Development / Re: [Pushpool Web Frontend] Simplecoin Opensource PHP/MySQL on: June 11, 2011, 07:41:27 AM
I got it installed, mysql set up, i was able to log in, but i had two questions. Now, i'm going to be doing this for nearly no vigorish, only EC2 costs of the pool hardware.

1) How do i set admin flag for an account? do i have to do that from mysql? Would it be too much to ask what the command is for that?
2) maybe this was just a cookie issue on the server, but whenever i logged out, and reloaded index.php it always showed me as logged in. I set the cookie name and / as the directory and the FQDN of the ec2 instance as the domain with a . in front. Is this the right way to do that? i tried looking at the linked page but it just said i needed a dot if i had example.com and .www.example.com

I'm more of an administrator of infrastructure and security than a programmer or DB admin, as you may have guessed; so i shall be thankful for any responses!

also, and this isn't mentioned, pushpool has to be set up, i didn't realize that for about 30 minutes after i got simplecoin working  Grin
27  Bitcoin / Bitcoin Technical Support / Re: Pushpool - Tech Support on: June 11, 2011, 05:11:13 AM
this error: un 11 05:02:55 ip-10-124-17-59 pushpoold[18786]: Debug output enabled
Jun 11 05:02:55 ip-10-124-17-59 pushpoold[18786]: Forcing local hostname to localhost.localdomain
Jun 11 05:02:55 ip-10-124-17-59 pushpoold[18787]: tcp socket: Address family not supported by protocol
Jun 11 05:02:59 ip-10-124-17-59 su[18765]: pam_unix(su:session): session closed for user bitcoin

from this config json:

Code:
{
        # network ports
        "listen" : [
                # HTTP JSON-RPC protocol, port 8337
                { "port" : 8337, "protocol" : "http-json" }
],
        # database settings
        "database" : {
                # ... or ...

                "engine" : "mysql",

                "host" : "localhost",

                "port" : 3306,

                "name" : "sc",
                "username" : "pushpool",
                "password" : "SWECRETS",

                "stmt.pwdb" :
                  "SELECT password FROM pool_worker WHERE username = ?"

        },

        # cache settings
        "memcached" : {
                "servers" : [
                        { "host" : "127.0.0.1", "port" : 11211 }
                ]
        },

        "pid" : "/home/bitcoin/pushpoold.pid",

        # overrides local hostname detection
        "forcehost" : "localhost.localdomain",

        "log.requests" : "/home/bitcoin/request.log",
        "log.shares" : "/home/bitcoin/shares.log",

        # the server assumes longpolling (w/ SIGUSR1 called for each blk)
        "longpoll.disable" : false,

        # length of time to cache username/password credentials, in seconds
        "auth.cred_cache.expire" : 75,

        # RPC settings
        "rpc.url" : "http://127.0.0.1:8332/",
        "rpc.user" : "bitcoin",
        "rpc.pass" : "SWEEECRETS",

        # rewrite returned 'target' to difficulty-1?
        "rpc.target.rewrite" : true
}
28  Bitcoin / Mining / Re: pushpool - open source pool software on: June 11, 2011, 03:27:05 AM
Pushpool on gentoo won't compile, make log below:

http://paste.pocoo.org/show/404358/

damn, remove --as-needed, run make clean && make, let it fail copy the line that says gcc and take out the ,-O1 -W1, part. the commas were breaking the command. is this gentoo's make's fault or some other script that is breaking?


gcc  -g -O2 -pthread -Wl,-O1 -Wl,-rdynamic -L/usr/lib64/mysql -lmysqlclient -L/usr/lib64 -lz -lcrypt -lnsl -lm -L/usr/lib64/ -lssl -lcrypto  -o pushpoold hist.o htab.o anet.o config.o msg.o server.o util.o db-sqlite.o db-mysql.o db-postgresql.o -lcurl -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz -levent -lpthread -ljansson -lcrypto -lz -lmemcached

becomes
 gcc  -g -O2 -pthread -Wl -rdynamic -L/usr/lib64/mysql -lmysqlclient -L/usr/lib64 -lz -lcrypt -lnsl -lm -L/usr/lib64/ -lssl -lcrypto  -o pushpoold hist.o htab.o anet.o config.o msg.o server.o util.o db-sqlite.o db-mysql.o db-postgresql.o -lcurl -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz -levent -lpthread -ljansson -lcrypto -lz -lmemcached

testing it now.
29  Other / Obsolete (buying) / Re: will pay 2 BTC for 1 BTC with traces of that pizza on it on: June 10, 2011, 07:23:26 PM
seven degrees of bacon pizza?
30  Other / Obsolete (buying) / WTB Radeon HD5850 or better 10-20BTC on: June 10, 2011, 07:01:49 PM
Want to buy AMD/ATI Radeon HD5850, 5870, 5970, 6870, 6950,6970, 6990. Will use http://pricewatch.com to adjust to fair market value. Determine if the card you want to trade can do over 250MH/s https://en.bitcoin.it/wiki/Mining_hardware_comparison

Dead Serious, no cash, just bitcoins. I will mark up the fair market by 10%-15% to help absorb the volatility of the BTC market right now; this post assumes that BTC ~= $27.50 USD or so.

Have a Fry's electronics near you? Then you live near me. We can go together and i can transfer you the BTC in the parking lot, go into the store, buy a 5850 and go our merry ways.

EDIT: an extra 2BTC over market for XFX brand if it is used. Offer does not apply if the card is brand new in box.



Pages: « 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!