Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Cryptofresh Block Explorer + MUSE now available  (Read 11703 times)

0 Members and 1 Guest are viewing this topic.

Online Shentist

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 1605
    • View Profile
    • metaexchange
  • BTS: shentist
Re: Cryptofresh Block Explorer [alpha]
« Reply #15 on: October 28, 2015, 06:25:23 AM »
i like the site more and more - very useful!

Offline wallace

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Re: Cryptofresh Block Explorer [alpha]
« Reply #16 on: October 28, 2015, 07:27:47 AM »
 +5%
give me money, I will do...

Online abit

Re: Cryptofresh Block Explorer [alpha]
« Reply #17 on: October 28, 2015, 02:41:13 PM »
Like it  +5%
BTS account: abit
BTS committee member: abit
BTS witness: in.abit


Offline Louis

Re: Cryptofresh Block Explorer [alpha]
« Reply #19 on: October 28, 2015, 02:56:09 PM »
Wow, very informative.  +5%

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
Re: Cryptofresh Block Explorer [alpha]
« Reply #20 on: October 28, 2015, 06:08:07 PM »
update on worker budget.
tl;dr: daily worker budget is the minimum of
worker_budget_per_day (from get_global_properties)
and
24*worker_budget (from the most recent get_object 2.13.X)

It currently is 360k BTS, not 500k BTS

Full write up:
every hour the worker budget is processed, but the budget isn't 500k BTS like i said, that is just the maximum. How it works:

Every second, [ 17/(2^32) * reserve fund ] is allocated for witnesses and workers where reserve fund is how many BTS are currently not distributed. This is defined in:
https://github.com/cryptonomex/graphene/blob/f85dec1c23f6bf9259ad9f15311b2e4aac4f9d44/libraries/chain/include/graphene/chain/config.hpp

Every hour the total available reserve fund is calculated by finding how many BTS are available to be distributed and how many BTS will be returned to the reserve fund (i.e., "burnt") during the next maintenance interval.

First find how many BTS have not been distributed:
Code: [Select]
from_initial_reserve = max_supply - current supply of BTS
from:
max_supply: get_object 1.3.0
current_supply: get_object 2.3.0


then modify it by adding the accumulated fees and witness budget remaining (i.e., 1.5 BTS per block is budgeted, so budget remaining is 1.5 BTS * (number of blocks left in maintenance period+blocks missed by witnesses))  in this maintenance cycle (they will be added to the "reserve fund" permanently at maintenance)

Code: [Select]
updated reserve fund = from_initial_reserve +  from_accumulated_fees + from_unused_witness_budgetvariables all from: get_object 2.13.* (choose the most recent one, for example)
for example:
Code: [Select]
new >>> get_object 2.13.361
get_object 2.13.361
[{
    "id": "2.13.361",
    "time": "2015-10-28T15:00:00",
    "record": {
      "time_since_last_budget": 3600,
      "from_initial_reserve": "106736452914941",
      "from_accumulated_fees": 15824269,
      "from_unused_witness_budget": 2250000,
      "requested_witness_budget": 180000000,
      "total_budget": 1520913100,
      "witness_budget": 180000000,
      "worker_budget": 1340913100,
      "leftover_worker_funds": 0,
      "supply_delta": 1502838831
    }
  }
]


then calculate how much is available to be spent on workers and witnesses is:

Code: [Select]
total_budget = (updated reserve fund)*(time_since_last_budget)*17/(2^32)
rounded up to the nearest integer

Ok, now to find how much workers will get in this budget period (1 hour), you find the smaller of the available pay AFTER subtracting witness budget from the total_budget OR the worker_budget_per_day/24 from "get_global_properties"

Code: [Select]
worker_budget=min(total_budget-witness_budget,worker_budget_per_day/24)

That is how much per hour allocated for all workers. NOW you rank each worker and pay them one hours worth of pay in order or # votes.

references:
https://github.com/cryptonomex/graphene/blob/4c09d6b8ed350ff5c7546e2c3fd15d0e6699daf2/libraries/chain/db_maint.cpp
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

Offline speedy

  • Hero Member
  • *****
  • Posts: 1160
    • View Profile
  • BTS: speedy
Re: Cryptofresh Block Explorer [alpha]
« Reply #21 on: October 28, 2015, 11:21:10 PM »
Is there a block explorer that shows info on a particular address, eg its balance & whether its claimed or not? This should be possible as most people arent using stealth addresses anymore.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12176
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Cryptofresh Block Explorer [alpha]
« Reply #22 on: October 29, 2015, 08:10:45 AM »
Is there a block explorer that shows info on a particular address, eg its balance & whether its claimed or not? This should be possible as most people arent using stealth addresses anymore.
You can only see account balances .. address don't hold funds except for those addresses in the genesis block .. I would suggest to take a look at the genesis block if you want to see your unclaimed balance:
https://github.com/bitshares/bitshares-2/blob/bitshares/genesis.json
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline hybridd

  • Full Member
  • ***
  • Posts: 164
    • View Profile
  • BTS: hybr1d
Re: Cryptofresh Block Explorer [alpha]
« Reply #23 on: October 29, 2015, 08:46:14 AM »
I've actually found this site useful as a debugging tool as well, nice job.
#btstip roadscape 100
http://sharebits.io - #sharebits "person" amount asset - Start tipping on bitsharestalk today!
Developer @ Freebie

Offline btstip

Re: Cryptofresh Block Explorer [alpha]
« Reply #24 on: October 29, 2015, 08:47:24 AM »
Hey hybridd, your tip of 100 BTS was sent to roadscape - https://bitsharestalk.org/index.php/topic,19507.msg251184/topicseen.html#msg251184 - Curious about BtsTip? Visit us at http://69.30.232.146:8092/ and start tipping BTS on https://bitsharestalk.org/ today!

Offline roadscape

Re: Cryptofresh Block Explorer [alpha]
« Reply #25 on: October 29, 2015, 02:44:07 PM »
update on worker budget.
tl;dr: daily worker budget is the minimum of
worker_budget_per_day (from get_global_properties)
and
24*worker_budget (from the most recent get_object 2.13.X)

It currently is 360k BTS, not 500k BTS

Full write up:
every hour the worker budget is processed, but the budget isn't 500k BTS like i said, that is just the maximum. How it works:

Every second, [ 17/(2^32) * reserve fund ] is allocated for witnesses and workers where reserve fund is how many BTS are currently not distributed. This is defined in:
https://github.com/cryptonomex/graphene/blob/f85dec1c23f6bf9259ad9f15311b2e4aac4f9d44/libraries/chain/include/graphene/chain/config.hpp

Every hour the total available reserve fund is calculated by finding how many BTS are available to be distributed and how many BTS will be returned to the reserve fund (i.e., "burnt") during the next maintenance interval.

First find how many BTS have not been distributed:
Code: [Select]
from_initial_reserve = max_supply - current supply of BTS
from:
max_supply: get_object 1.3.0
current_supply: get_object 2.3.0


then modify it by adding the accumulated fees and witness budget remaining (i.e., 1.5 BTS per block is budgeted, so budget remaining is 1.5 BTS * (number of blocks left in maintenance period+blocks missed by witnesses))  in this maintenance cycle (they will be added to the "reserve fund" permanently at maintenance)

Code: [Select]
updated reserve fund = from_initial_reserve +  from_accumulated_fees + from_unused_witness_budgetvariables all from: get_object 2.13.* (choose the most recent one, for example)
for example:
Code: [Select]
new >>> get_object 2.13.361
get_object 2.13.361
[{
    "id": "2.13.361",
    "time": "2015-10-28T15:00:00",
    "record": {
      "time_since_last_budget": 3600,
      "from_initial_reserve": "106736452914941",
      "from_accumulated_fees": 15824269,
      "from_unused_witness_budget": 2250000,
      "requested_witness_budget": 180000000,
      "total_budget": 1520913100,
      "witness_budget": 180000000,
      "worker_budget": 1340913100,
      "leftover_worker_funds": 0,
      "supply_delta": 1502838831
    }
  }
]


then calculate how much is available to be spent on workers and witnesses is:

Code: [Select]
total_budget = (updated reserve fund)*(time_since_last_budget)*17/(2^32)
rounded up to the nearest integer

Ok, now to find how much workers will get in this budget period (1 hour), you find the smaller of the available pay AFTER subtracting witness budget from the total_budget OR the worker_budget_per_day/24 from "get_global_properties"

Code: [Select]
worker_budget=min(total_budget-witness_budget,worker_budget_per_day/24)

That is how much per hour allocated for all workers. NOW you rank each worker and pay them one hours worth of pay in order or # votes.

references:
https://github.com/cryptonomex/graphene/blob/4c09d6b8ed350ff5c7546e2c3fd15d0e6699daf2/libraries/chain/db_maint.cpp

Wow, great breakdown!! I tried to follow the long calcs but the results didn't match up so I went with the TLDR version for now :) The homepage now displays "Daily worker budget:  321,809 BTS" and updates the approximate daily funding level.

Is there a block explorer that shows info on a particular address, eg its balance & whether its claimed or not? This should be possible as most people arent using stealth addresses anymore.
You can only see account balances .. address don't hold funds except for those addresses in the genesis block .. I would suggest to take a look at the genesis block if you want to see your unclaimed balance:
https://github.com/bitshares/bitshares-2/blob/bitshares/genesis.json

I might be able to add a genesis lookup tool and claimed (yes/no) status.. I'll add it to the wishlist

I've actually found this site useful as a debugging tool as well, nice job.
#btstip roadscape 100

Cool, thx  8)
http://cryptofresh.com  |  witness: roadscape

Offline roadscape

Re: Cryptofresh Block Explorer [alpha]
« Reply #26 on: October 29, 2015, 02:48:38 PM »
Also, I dug into proposals and they're starting to make more sense:

http://cryptofresh.com/p/1.10.10

Very cool how the threshold multisig committee-acount works..
http://cryptofresh.com  |  witness: roadscape

Offline mint chocolate chip

Re: Cryptofresh Block Explorer [alpha]
« Reply #27 on: November 04, 2015, 04:27:54 PM »
Nice work.

Can you list in the profile page, i.e. http://cryptofresh.com/u/fav the referred accounts, "openledger-reg created account albertus79 thanks to fav"?


Offline Thom

Re: Cryptofresh Block Explorer [alpha]
« Reply #29 on: November 04, 2015, 06:26:41 PM »
Also, I dug into proposals and they're starting to make more sense:

http://cryptofresh.com/p/1.10.10

Very cool how the threshold multisig committee-acount works..
Excellent progress! Your efforts show improvements every day!  +5%

Keep it up!
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: https://bitsharestalk.org/index.php/topic,23902.0.html

 

Google+