Skip to content

Instantly share code, notes, and snippets.

@Bojak4616
Bojak4616 / 0.sol
Created May 9, 2020 19:38
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=false&gist=
pragma solidity = 0.4.25;
contract Warmup {
bool public locked;
constructor() public payable {
locked = true;
}
function unlock() public payable {
@Bojak4616
Bojak4616 / gnome.json
Last active July 18, 2018 01:31
JSON representation of known cattributes. Includes binary, INT, and cattribute_name representations.
{
"accentColour": {
"10000": {
"id": "10000",
"name": "daffodil",
"int": "AC16"
},
"10001": {
"id": "10001",
"name": "flamingo",
[sia@localhost ~]$ ./siad
Sia Daemon v1.3.2
Git Revision 72938f5
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
(3/6) Loading transaction pool...
(4/6) Loading wallet...
(5/6) Loading host...
[sia@localhost ~]$ tail -30 host/host.log
2018/03/29 00:06:50.381548 errors.go:151: communication error: error with 85.214.225.185:58614: incoming RPCReviseContract failed: revision iteration failed: rejected proposed modifications: unable to verify updated contract: expected at least 656520229902683734016 to be exchanged, but 437367991519949476244 was exchanged: rejected for high paying renter valid output
2018/03/29 00:32:23.295212 errors.go:151: communication error: error with 77.166.0.116:61612: incoming RPCReviseContract failed: revision iteration failed: rejected proposed modifications: unable to verify updated contract: expected at least 462946303984078422016 to be exchanged, but 312987071497471684902 was exchanged: rejected for high paying renter valid output
2018/03/29 00:38:03.637860 errors.go:151: communication error: error with 176.63.236.11:40499: incoming RPCReviseContract failed: revision iteration failed: rejected proposed modifications: unable to verify updated contract: expected at least 537
@Bojak4616
Bojak4616 / host.log
Last active March 15, 2018 00:48
Host window errors
[sia@localhost ~]$ cat host/host.log | grep window
2018/03/10 01:21:32.782375 errors.go:151: communication error: error with 111.199.191.44:30009: incoming RPCRenewContract failed: verification of renewal failed: rejected for a window that starts too soon
2018/03/11 00:49:56.958473 errors.go:151: communication error: error with 111.199.191.44:30300: incoming RPCFormContract failed: contract verification failed: rejected for a window that starts too soon
2018/03/11 15:36:05.357958 errors.go:151: communication error: error with 111.199.191.44:31675: incoming RPCFormContract failed: contract verification failed: rejected for a window that starts too soon
2018/03/11 16:06:15.673806 errors.go:151: communication error: error with 111.199.191.44:30972: incoming RPCFormContract failed: contract verification failed: rejected for a window that starts too soon
2018/03/11 16:16:09.536921 errors.go:151: communication error: error with 111.199.191.44:30275: incoming RPCFormContract failed: contract verification failed: re
@Bojak4616
Bojak4616 / sia_ping.py
Created February 13, 2018 05:02
Ping host to see if it's up. If it's not, use Pushbullet to send you a notification.
#!/usr/bin/python
import subprocess
# Follow https://docs.pushbullet.com/#api-quick-start to get free token
TOKEN = ""
HOST_ADDRESS = ""
BASE_URL = "https://api.pushbullet.com/v2/"
data = '{"type":"note","title":"Sia","body":"Sia Host is Down!!"}'