-
Notifications
You must be signed in to change notification settings - Fork 16
/
config.sample.php
47 lines (39 loc) · 1.38 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
require_once __DIR__ . '/include/w8_error_handler.php';
require_once __DIR__ . '/vendor/autoload.php';
use deemru\WavesKit;
date_default_timezone_set( 'UTC' );
function wk( $full = true ) : WavesKit
{
static $wk;
if( !isset( $wk ) )
{
$wk = new WavesKit( W8IO_NETWORK, [ 'w', 'e', 'i', 's' ] );
if( $full )
{
$nodes = explode( '|', W8IO_NODES );
define( 'WK_CURL_SETBESTONERROR', true );
$wk->setNodeAddress( $nodes, 0 );
$wk->setCryptash( 'SECRET_STRING_SET_YOURS_HERE' );
}
}
return $wk;
}
function w8_err( $message = '(no message)' )
{
if( isset( $_SERVER['REQUEST_URI'] ) )
$message .= ' (' . $_SERVER['REQUEST_URI'] . ')';
trigger_error( $message, E_USER_ERROR );
}
define( 'W8IO_DB_DIR', __DIR__ . '/var/db/' );
define( 'W8IO_DB_PATH', W8IO_DB_DIR . 'blockchain.sqlite3' );
define( 'W8DB', 'sqlite:' . W8IO_DB_PATH );
define( 'W8IO_NODES', 'http://127.0.0.1:6869|https://nodes.wavesexplorer.com' );
define( 'W8IO_MATCHER', 'https://matcher.waves.exchange' );
define( 'W8IO_NETWORK', 'W' ); // 'W' -- mainnet, 'T' -- testnet
define( 'W8IO_ROOT', '/' );
define( 'W8IO_MAX_UPDATE_BATCH', 1 ); // set more on when on a local node
define( 'W8IO_UPDATE_DELAY', 1 );
define( 'W8IO_UPDATE_PROCS', 1 );
define( 'WK_CURL_TIMEOUT', 15 );
define( 'W8IO_MAX_MEMORY', 1024 * 1024 * 1024 );