Welcome.
Btw, redditors said that in the long run it is not very secure to publish bitcoin signatures made with bitcoin addresses that hold money (
https://www.reddit.com/r/btc/comments/4mhjh3/psa_bitcoinocracycom_signatures_expose_your). They proposed a few ideas of how to improve it.
The one I liked for its simplicity is the following:
The weight of the signature made with bitcoin address A could be calculated as the sum of all unspent outputs of all the transactions that originate from A. For the sake of compatibility with the current implementation we could also add the balance of A to that sum.
Shouldn't be too difficult to implement. If somebody does it, please submit a pull request
Thanks - yes, aware of the potential security implications - it's a risk, but one that is smaller with a more experimental altcoin. Might look at ways to tighten up the security over time.
I've got the app deployed to Heroku now -
https://hodlcoinocracy.herokuapp.com/I haven't changed anything yet - just seeing if I can get it up and running as I'm new to RoR.
I'm getting the first page to display occasionally, but anything else is erroring out -
Only thing I've done is
heroku run rake db:migrate --app hodlcoinocracy
db appears to have 5 tables in it now.
Some log examples -
2016-06-17T12:18:02.014540+00:00 app[web.1]: Processing by ArgumentsController#controversial as HTML
2016-06-17T12:18:02.225735+00:00 app[web.1]: Completed 200 OK in 211ms (Views: 181.9ms | ActiveRecord: 26.7ms)
2016-06-17T12:18:02.208177+00:00 heroku[router]: at=info method=GET path="/" host=hodlcoinocracy.herokuapp.com request_id=ecb611ef-7a07-42c0-be1f-6ec00cb89b46 fwd="146.88.41.168" dyno=web.1 connect=0ms service=227ms status=200 bytes=3790
2016-06-17T12:18:02.596672+00:00 heroku[router]: at=info method=GET path="/assets/application-01ac8e834db29b7d6f7397724b4a1a46.js" host=hodlcoinocracy.herokuapp.com request_id=5638eb5a-ec3f-4458-9b92-8770d08e2164 fwd="146.88.41.168" dyno=web.1 connect=0ms service=13ms status=304 bytes=133
2016-06-17T12:18:02.599312+00:00 heroku[router]: at=info method=GET path="/assets/application-e08c13ca1d734fd99cbdf8ab292f0539.css" host=hodlcoinocracy.herokuapp.com request_id=c9be1fbe-c197-4b64-bef8-4963a4324205 fwd="146.88.41.168" dyno=web.1 connect=1ms service=14ms status=304 bytes=119
2016-06-17T12:18:06.949047+00:00 app[web.1]: Started GET "/arguments/new" for 146.88.41.168 at 2016-06-17 12:18:06 +0000
2016-06-17T12:18:06.953547+00:00 app[web.1]: Processing by ArgumentsController#new as HTML
2016-06-17T12:18:06.942300+00:00 heroku[router]: at=info method=GET path="/arguments/new" host=hodlcoinocracy.herokuapp.com request_id=c1fca481-8143-4018-a6bc-08c18f819b64 fwd="146.88.41.168" dyno=web.1 connect=0ms service=19ms status=500 bytes=1669
2016-06-17T12:18:07.403138+00:00 app[web.1]: Started GET "/arguments/new" for 146.88.41.168 at 2016-06-17 12:18:07 +0000
2016-06-17T12:18:07.405889+00:00 app[web.1]: Processing by ArgumentsController#new as HTML
2016-06-17T12:18:07.391382+00:00 heroku[router]: at=info method=GET path="/arguments/new" host=hodlcoinocracy.herokuapp.com request_id=6c2b8f78-1bd6-4b5a-a969-c84d878fa7fb fwd="146.88.41.168" dyno=web.1 connect=0ms service=13ms status=500 bytes=1669
2016-06-17T12:18:06.953547+00:00 app[web.1]: Processing by ArgumentsController#new as HTML
2016-06-17T12:18:06.942300+00:00 heroku[router]: at=info method=GET path="/arguments/new" host=hodlcoinocracy.herokuapp.com request_id=c1fca481-8143-4018-a6bc-08c18f819b64 fwd="146.88.41.168" dyno=web.1 connect=0ms service=19ms status=500 bytes=1669
2016-06-17T12:18:07.413073+00:00 app[web.1]: app/controllers/application_controller.rb:13:in `update_bitcoin_balance'
2016-06-17T12:18:07.391382+00:00 heroku[router]: at=info method=GET path="/arguments/new" host=hodlcoinocracy.herokuapp.com request_id=6c2b8f78-1bd6-4b5a-a969-c84d878fa7fb fwd="146.88.41.168" dyno=web.1 connect=0ms service=13ms status=500 bytes=1669
2016-06-17T12:18:06.953547+00:00 app[web.1]: Processing by ArgumentsController#new as HTML
2016-06-17T12:18:07.411881+00:00 app[web.1]: Completed 500 Internal Server Error in 6ms (ActiveRecord: 3.7ms)