Estimated time: 10 minutes
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0.0.0.0 live.primis.tech | |
0.0.0.0 video.primis.tech |