Skip to content

Instantly share code, notes, and snippets.

View Stackout's full-sized avatar
🎯
Focusing

Ryan Hein Stackout

🎯
Focusing
View GitHub Profile
0.0.0.0 live.primis.tech
0.0.0.0 video.primis.tech
@Stackout
Stackout / main.rs
Last active September 16, 2020 14:43
#![warn(rust_2018_idioms)]
#[allow(arithmetic_overflow)]
use tokio::net::TcpListener;
use tokio_util::codec::{BytesCodec, Framed};
use std::env;
use bytes::{BufMut, BytesMut};
use std::sync::{Arc,RwLock};
use std::collections::HashMap;
use uuid::Uuid;
@Stackout
Stackout / pexa-stratum-upgrade-v1.7.0.md
Last active June 13, 2020 11:11
Pexa stratum upgrade compatibility for Yiimp

The validateaddress RPC method no longer exists in pexa v1.7.0. The easy solution would be to simply add PEXA to this line in coind.cpp; however, for a more scaleable solution, add a new variable to the YAAMP_COIND class called hasgetaddressinfo, to keep the boolean variable names consistent that same class.

coind.cpp (line ~118)

- bool getaddressinfo = ((strcmp(coind->symbol,"DGB") == 0) || (strcmp(coind->symbol2, "DGB") == 0));
+ bool getaddressinfo = ((strcmp(coind->symbol,"DGB") == 0) || (strcmp(coind->symbol2, "DGB") == 0) || ((strcmp(coind->symbol,"PEXA") == 0) || (strcmp(coind->symbol2, "PEXA") == 0)));

You will also want enable usesegwit in your database for PEXA's settings. Otherwise you will recieve a 500 status code error from the RPC.

@Stackout
Stackout / aoe2hd.md
Created February 2, 2019 14:13 — forked from yocontra/aoe2hd.md
Age of Empires II HD - For Mac OSX