A Kaspa transaction spends existing UTXOs and creates new UTXOs.
An output locks value with a scriptPublicKey. An input spends a previous
output by referencing its outpoint and providing a signature_script.
Description
Adds GetVirtualChainFromBlockV2, a non-breaking virtual-chain RPC that returns chain updates together with per-chain-block accepted transaction data, controlled by an optional incremental verbosity level.
Operation: GetVirtualChainFromBlockV2
Opcode: RpcApiOps::GetVirtualChainFromBlockV2 = 151
| extern crate rand; | |
| use std::process; | |
| use rand::Rng; | |
| use world::World; | |
| pub mod world; | |
| pub fn create_world(n_col: usize, n_row: usize) -> World { | |
| let mut _world = World::new(n_col, n_row).unwrap_or_else(|err| { |