Difference between revisions of "HowTo run SPV"

From Veriblock Wiki
Jump to: navigation, search
Line 47: Line 47:
 
<pre>
 
<pre>
 
# Default Configuration of VeriBlock SPV
 
# Default Configuration of VeriBlock SPV
# Options: mainnet | testnet | alphanet  
+
spv {
network: mainnet
+
  # Blockchain network to connect to (mainnet | testnet | alphanet)
 +
  network: mainnet
 +
  # Data directory
 +
  dataDir: "."
 +
  # Uncomment if you want SPV to connect to a local node
 +
  #connectDirectlyTo: [localhost]
 +
  # Uncomment if you want SPV to connect to 3 arbitrary nodes/ports
 +
  #connectDirectlyTo: [host1:1111,host1:2222,host1:3333]
 +
  # Trust the block hashes from the peers (fast sync) or compute them locally (slow sync)
 +
  trustPeerHashes: false
 +
}
 
</pre>
 
</pre>
  

Revision as of 09:58, 6 November 2020

Overview

NodeCore SPV (Simple Payment Verification) is a light wallet that allows a user to see their balance and send VBK without downloading, syncing, and running a full node.

Post vProgPoW, run this beta wallet:

DOWNLOAD: https://mirror1.veriblock.org/veriblock-spv-0.4.11-dev.51.apm.spv.zip

Run veriblock-spv.bat

Tested on OpenJDK 8, 11, 14, for Windows and Ubuntu Linux

Spv download 2.png

Source Code

Github: https://github.com/VeriBlock/nodecore/tree/develop/nodecore-spv

Commands

SPV has a subset of commands: https://wiki.veriblock.org/index.php/NodeCore_CommandLine

help
Commands:
    clear
    quit|leave|close|exit
    help|?|/?|h|/h|h?|showcommands
    getbalance|getbal|bal
    getstateinfo|stateinfo|state|getstate
    send|sendtoaddress|sendtoaddr
    lockwallet
    unlockwallet
    decryptwallet
    encryptwallet
    importwallet
    backupwallet
    getnewaddress

Configuration

File: application.conf

# Default Configuration of VeriBlock SPV
spv {
  # Blockchain network to connect to (mainnet | testnet | alphanet)
  network: mainnet
  # Data directory
  dataDir: "."
  # Uncomment if you want SPV to connect to a local node
  #connectDirectlyTo: [localhost]
  # Uncomment if you want SPV to connect to 3 arbitrary nodes/ports
  #connectDirectlyTo: [host1:1111,host1:2222,host1:3333]
  # Trust the block hashes from the peers (fast sync) or compute them locally (slow sync)
  trustPeerHashes: false
}

Appendix

Known Issues

SPV does not show locked coins (from MainNet launch). If you have a locked-coin balance, SPV will still show as zero.

Running importwallet may take a few minutes to sync the new wallet.