Skip to content

Instantly share code, notes, and snippets.

View alexvanin's full-sized avatar

Alex Vanin alexvanin

View GitHub Profile
root@4330b5a6b0ab:/neo-python/scripts# cp /root/raw.txs ./
root@4330b5a6b0ab:/neo-python/scripts# exit 0
root@4330b5a6b0ab:/neo-python/scripts# ./tx-gen.py -n 10
Privatenet useragent '/Neo:2.9.4/', nonce: 856199433
[I 190319 13:16:08 Settings:331] Created 'Chains' directory at /root/.neopython/Chains
[I 190319 13:16:09 LevelDBBlockchain:112] Created Blockchain DB at /root/.neopython/Chains/privnet
[I 190319 13:16:09 tx-gen:215] ...awaits 0/0
[I 190319 13:17:35 tx-gen:215] ...awaits 6246/6516
[I 190319 13:17:37 tx-gen:221] Syncronized. Height 6516 Now open wallet:
[I 190319 13:17:37 tx-gen:231] Wallet opened
[I 190319 13:17:42 tx-gen:131] Constructing NEO : 0-9
Sending 10.0 NEO from AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y to AJfUYsPJuaurA9f6RB2DVKhV6PmRp8DrdS
neo-bench$ make up
Start environment
Creating network "neo-bench_inside" with the default driver
Creating network "neo-bench_host-exposed" with driver "bridge"
Creating neo-cli-privatenet-3 ... done
Creating neo-cli-privatenet-1 ... done
Creating neo-cli-privatenet-4 ... done
Creating neo-cli-privatenet-2 ... done
Creating neo-python ... done
# cat /opt/node/neo-cli/Plugins/SimplePolicy/config.json | grep "MaxTransactionsPerBlock"
"MaxTransactionsPerBlock": 500,
# cat /opt/node/neo-cli/protocol.json | grep "SecondsPerBlock"
"SecondsPerBlock": 4,
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import os
import random
import hashlib
from time import sleep
#For working with http server
from BaseHTTPServer import *
@alexvanin
alexvanin / cgi_l1.asm
Created October 26, 2015 17:27
CGI lab. work : lines and circles (Bresenham algo) in assembly code.
;-- Created by Alexey Vanin, 25.10.2015
;---------------------------------------------
;-- Assembly code for lab. work : CG course
;-- Drawing cube and filled-circle inside
;-- Used Bresenham line & circle algorythms
;-- Filling with inline method
.model small
.stack 1024
.data