Author Topic: Private Test Network  (Read 1214 times)

0 Members and 1 Guest are viewing this topic.

Offline hkadim

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • GitHub: hkadim
Private Test Network
« on: March 15, 2018, 05:12:24 pm »
Hallo,
I installed aprivate Testnetwork according to the http://docs.bitshares.org/testnet/private-testnet.html every thing went fine except
when I send asset to another account

he receives the  transfer 7 times!! and I see in the history 7 transfer!


any help

regards
hkadim

config.ini
###############################################
# Endpoint for P2P node to listen on
p2p-endpoint = 127.0.0.1:11010
# 4e3d3c65ee5febc800bf272b6c485aecc3dd69c77b84b2e4f44e7a4a50f9e607
# P2P nodes to connect to on startup (may specify multiple times)
 seed-node = []

# JSON array of P2P nodes to connect to on startup
# seed-nodes =

# Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.
checkpoint = ["12204000", "00ba37e095ab9f3fa752f812591213a75ffc2087"]

# Endpoint for websocket RPC to listen on
 rpc-endpoint = 0.0.0.0:11011

# Endpoint for TLS websocket RPC to listen on
# rpc-tls-endpoint =

# The TLS certificate file for this server
# server-pem =

# Password for this certificate
# server-pem-password =

# File to read Genesis State from
 genesis-json = /data_witness_node/my-genesis.json

# Block signing key to use for init witnesses, overrides genesis file
# dbg-init-key =

# JSON file specifying API permissions
# api-access =

# Space-separated list of plugins to activate
# plugins =

# Enable block production, even if the chain is stale.
enable-stale-production = TRUE

# Percent of witnesses (0-99) that must be participating in order to produce blocks
required-participation = false

# ID of witness controlled by this node (e.g. "1.6.5", quotes are required, may specify multiple times)
# witness-id =
witness-id = "1.6.1"
witness-id = "1.6.2"
witness-id = "1.6.3"
witness-id = "1.6.4"
witness-id = "1.6.5"
witness-id = "1.6.6"
witness-id = "1.6.7"
witness-id = "1.6.8"
witness-id = "1.6.9"
witness-id = "1.6.10"
witness-id = "1.6.11"
# Tuple of [PublicKey, WIF private key] (may specify multiple times)
private-key = ["TEST6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]

# Tuple of [PublicKey, WIF private key] (may specify multiple times)
debug-private-key = ["TEST6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]

# Account ID to track history for (may specify multiple times)
# track-account =

# Keep only those operations in memory that are related to account history tracking (defaults to true)
partial-operations = 1

# Maximum number of operations per account will be kept in memory (defaults to 1000)
max-ops-per-account = 1000

# Elastic Search database node url
# elasticsearch-node-url =

# Number of bulk documents to index on replay(5000)
# elasticsearch-bulk-replay =

# Number of bulk documents to index on a syncronied chain(10)
# elasticsearch-bulk-sync =

# Log bulk events to database
# elasticsearch-logs =

# Use visitor to index additional data(slows down the replay)
# elasticsearch-visitor =

# Track market history by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers
bucket-size = [60,300,900,1800,3600,14400,86400]

# How far back in time to track history for each bucket size, measured in the number of buckets (default: 1000)
history-per-size = 1000

# Will only store this amount of matched orders for each market in order history for querying, or those meet the other option, which has more data (default: 1000)
max-order-his-records-per-market = 1000

# Will only store matched orders in last X seconds for each market in order history for querying, or those meet the other option, which has more data (default: 259200 (3 days))
max-order-his-seconds-per-market = 259200

# RPC endpoint of a trusted validating node (required)
# trusted-node =

# Block number after which to do a snapshot
# snapshot-at-block =

# Block time (ISO format) after which to do a snapshot
# snapshot-at-time =

# Pathname of JSON file where to store the snapshot
# snapshot-to =

# declare an appender named "stderr" that writes messages to the console
[log.console_appender.stderr]
stream=std_error

# declare an appender named "p2p" that writes messages to p2p.log
[log.file_appender.p2p]
filename=/data_witness_node/logs/p2p/p2p.log
# filename can be absolute or relative to this config file

# route any messages logged to the default logger to the "stderr" logger we
# declared above, if they are info level are higher
[logger.default]
level=info
appenders=stderr

# route messages sent to the "p2p" logger to the p2p appender declared above
[logger.p2p]
level=info
appenders=p2p

Regards,
hkadim

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4549
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
Re: Private Test Network
« Reply #1 on: March 15, 2018, 09:08:59 pm »
> when I send asset to another account

How did you do that? Please describe the steps.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline hkadim

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • GitHub: hkadim
Re: Private Test Network
« Reply #2 on: March 18, 2018, 10:27:50 am »
Hi there,
for example if I transfer 100 TEST to alpha,
alpha receives 100* 7 = 700 TEST

using the CLI_wallet:
transfer nathan alpha 100 TEST "here is some cash" true

The same effect using the bitshares-ui Browser Wallet.

and I see 7 records in the history!

I used this code to create the witness
https://github.com/bitshares/bitshares-core/tree/testnet

Regards,
hkadim

« Last Edit: March 18, 2018, 10:59:24 am by hkadim »
Regards,
hkadim

Offline hkadim

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • GitHub: hkadim
Re: Private Test Network
« Reply #3 on: March 26, 2018, 05:37:31 pm »

I found a solution:

the solution was to use the code from https://github.com/bitshares/bitshares-core branch master insted of the branch testnet to compile the witness and everything went super.

hkadim
Regards,
hkadim