Bitcoin Forum
May 03, 2024, 01:29:50 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they believe that the creator of this topic displays some red flags which make them high-risk. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 [59] 60 61 62 63 64 65 »
  Print  
Author Topic: Nxt source code flaw reports  (Read 113306 times)
starik69
Legendary
*
Offline Offline

Activity: 1367
Merit: 1000


View Profile
January 31, 2014, 06:47:56 PM
 #1161

Ah, maybe some other NXT developer knows elementary statistics well enough to understand this?
Seems like it is you who needs some elementary statistics classes Grin
1714742990
Hero Member
*
Offline Offline

Posts: 1714742990

View Profile Personal Message (Offline)

Ignore
1714742990
Reply with quote  #2

1714742990
Report to moderator
1714742990
Hero Member
*
Offline Offline

Posts: 1714742990

View Profile Personal Message (Offline)

Ignore
1714742990
Reply with quote  #2

1714742990
Report to moderator
1714742990
Hero Member
*
Offline Offline

Posts: 1714742990

View Profile Personal Message (Offline)

Ignore
1714742990
Reply with quote  #2

1714742990
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714742990
Hero Member
*
Offline Offline

Posts: 1714742990

View Profile Personal Message (Offline)

Ignore
1714742990
Reply with quote  #2

1714742990
Report to moderator
1714742990
Hero Member
*
Offline Offline

Posts: 1714742990

View Profile Personal Message (Offline)

Ignore
1714742990
Reply with quote  #2

1714742990
Report to moderator
1714742990
Hero Member
*
Offline Offline

Posts: 1714742990

View Profile Personal Message (Offline)

Ignore
1714742990
Reply with quote  #2

1714742990
Report to moderator
opticalcarrier
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
January 31, 2014, 06:49:18 PM
 #1162

Good algorithm works equally good on 2 wallets, 3 wallets and 101 wallets and indefinite number of wallets. Bad algorithm needs someone like Come-from-Beyond to make unverifiable claims that 'it works, believe me!'

C'mon! It's not religion, it's programming!

The right way to do this is to have some penalty for fat wallets and encourage a lot of small wallets.  So 100 small wallets should make more than 1 fat wallet.

ok so then i break down my one 50M account into fiftty 1M accounts

come on you're going to have to do better than this.  if you fell for this logical trap, I dont see how you are EVER going to do your own coin...

Then go with proof of burn... the bigger the risk the bigger the gain.  Just like Bitcoin,  the bigger the investment on mining hardware,  the bigger the gain.   That sounds more fair to me than a bunch of fat cats earning coins for just hoarding them.

no thanks - we want 1000's of transactions/second.  so we'll stay with 100% PoS.
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
January 31, 2014, 06:59:49 PM
 #1163

Code:
from random import random
from operator import itemgetter

NBLOCKS = 100000
N = 100
W = [100000] + [1000] * N
z = [0.] * len(W)
wins = [0] * len(W)

for x in xrange(NBLOCKS):
for i in xrange(len(W)):
z[i] = random()/W[i]

[position, value] = min(enumerate(z), key=itemgetter(1))
wins[position] += 1

print float(wins[0])/sum(wins[1:]), float(wins[0])/(sum(wins[1:])/N)
Quote
1.71835159159 172.242506812


Ur model is way too simplified. This is better one (but also doesn't match reality):

Code:
from random import random
from operator import itemgetter

NBLOCKS = 100000
N = 99
pawn = 9000000
king = 1000000000 - N*pawn

print king/pawn

W = [king] + [pawn] * N
wins = [0] * len(W)
z = [0] * len(W)

for x in xrange(NBLOCKS):
elapsedTime = (random()*60)
count = 0
for i in xrange(len(W)):
target = W[i] * elapsedTime
hit = random()*120000000219 # related to BASE TARGET,
                            # the lower the number, more peers have chance to hit
# ~120 will cause anyone to hit
if (hit < target):
wins[i] += 1
count += 1
#print count

print float(wins[0])/sum(wins[1:]), float(wins[0])/(sum(wins[1:])/N)
print wins

king/pawn in this sample gives 12, and that's also result of second float printed after both loops

Quote
> foo.py
12
0.12333879483 12.2624434389

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
jkoil
Hero Member
*****
Offline Offline

Activity: 834
Merit: 524


Nxt NEM


View Profile
January 31, 2014, 08:30:17 PM
Last edit: January 31, 2014, 08:58:33 PM by jkoil
 #1164

Ur model is way too simplified. This is better one (but also doesn't match reality):

Code:

king/pawn in this sample gives 12, and that's also result of second float printed after both loops

Quote
> foo.py
12
0.12333879483 12.2624434389

"doesn't match reality"

How close to reality you could make that kind of simulation? Smiley

There [in the simulation] should be included the feature that 'king' accounts are getting more and more and so their probabilities to get more increases. As to the NXT system is not coming any NXTs, the 'pawn' accounts will get poorer. In some scenarios Smiley   But that needs to be checked, even in theory ... later in practice.

Ofc the situation may not be so bias; there has been talked about forthcoming features and change of fees, but ...


Edit: typos and clarification

Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
January 31, 2014, 08:34:32 PM
 #1165

"doesn't match reality"

How close to reality you could make that kind of simulation? Smiley

There should be included the feature that 'king' accounts are getting more and more and so their probabilities to get more increases. As to the NXT system is not coming any NXTs, the 'pawn' accounts will get poorer. In some scenarios Smiley  But that needs to be checked, even in theory ... later in practice.

Ofc the situation may not be so bias; there has been taled about fortcoming features and change of fees, but ...


This can't happen coz accounts that lose their turn to forge a block will be penalized. The only way to avoid the penalty is to split big accounts into 100s small ones.
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
January 31, 2014, 09:06:06 PM
 #1166

Ur model is way too simplified. This is better one (but also doesn't match reality):

Code:

king/pawn in this sample gives 12, and that's also result of second float printed after both loops

Quote
> foo.py
12
0.12333879483 12.2624434389

"doesn't match reality"


I was referring to the fact, that in reality, the king might not be "fastest", and there's chance for pawns connected to large number of peers.

P.S. but ofc, what you've written also matters, but CfB already replied to that.

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
nadrimajstor
Newbie
*
Offline Offline

Activity: 30
Merit: 0



View Profile
February 01, 2014, 08:15:01 PM
 #1167

I suppose line 5873
    if (peer.state == peer.STATE_DISCONNECTED) {
should be
    if (peer.state == Peer.STATE_DISCONNECTED) {
 Huh
Come-from-Beyond (OP)
Legendary
*
Offline Offline

Activity: 2142
Merit: 1009

Newbie


View Profile
February 01, 2014, 08:16:42 PM
 #1168

I suppose line 5873
    if (peer.state == peer.STATE_DISCONNECTED) {
should be
    if (peer.state == Peer.STATE_DISCONNECTED) {
 Huh

Does it matter?
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
February 01, 2014, 08:17:58 PM
 #1169

I suppose line 5873
    if (peer.state == peer.STATE_DISCONNECTED) {
should be
    if (peer.state == Peer.STATE_DISCONNECTED) {
 Huh

1st one is ugly, but compiler will accept that

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
bitcoinpaul
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000



View Profile
February 01, 2014, 08:30:30 PM
 #1170

I suppose line 5873
    if (peer.state == peer.STATE_DISCONNECTED) {
should be
    if (peer.state == Peer.STATE_DISCONNECTED) {
 Huh

1st one is ugly, but compiler will accept that

Must be the fatal flaw.
Meizirkki
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500



View Profile
February 01, 2014, 10:37:49 PM
 #1171

Is there a method to limit target from overflowing?
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
February 01, 2014, 11:30:19 PM
 #1172

Is there a method to limit target from overflowing?

if you mean base target, it won't overflow. check is done inside calculateBaseTarget
Code:
...
long twofoldCurBaseTarget = curBaseTarget * 2;
if (twofoldCurBaseTarget < 0) {
twofoldCurBaseTarget = maxBaseTarget;
}
if (newBaseTarget > twofoldCurBaseTarget) {
newBaseTarget = twofoldCurBaseTarget;
}

if you mean hit target, computation is done using BigInteger, so that won't overflow.
Code:
BigInteger target = BigInteger.valueOf(Block.getBaseTarget()).multiply(BigInteger.valueOf(account.getEffectiveBalance())).multiply(BigInteger.valueOf(elapsedTime));
BigInteger hit = ...
if (hit.compareTo(target) >= 0) {

edit added code fragments

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
nadrimajstor
Newbie
*
Offline Offline

Activity: 30
Merit: 0



View Profile
February 02, 2014, 03:35:29 PM
 #1173

Does it matter?
Don't know... Just wondering... I'm not a developer by any stretch of imagination.  Embarrassed
bitcoinpaul
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000



View Profile
February 05, 2014, 08:46:14 AM
 #1174

Where is the fatal flaw, guys.
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
February 05, 2014, 06:53:43 PM
 #1175

Where is the fatal flaw, guys.

I know saying (based on the similarity to word "who"), that russian guys will understand:

xyй knows.

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
CrazyEyes
Full Member
***
Offline Offline

Activity: 137
Merit: 100


View Profile
February 06, 2014, 12:17:37 AM
 #1176

I propose that everyone in here who have put their heart in mind into solving existing bugs as well as validating non vuln code will get bounty for it, right here, right now. We have done the community a huge favor. Core dev team should show their appreciation.

I assume i can speak for everyone here. People in this forum are working for free, making others profit. Now its their turn.

Regards
j0b
CrazyEyes
Full Member
***
Offline Offline

Activity: 137
Merit: 100


View Profile
February 07, 2014, 12:04:35 AM
 #1177

I propose that everyone in here who have put their heart in mind into solving existing bugs as well as validating non vuln code will get bounty for it, right here, right now. We have done the community a huge favor. Core dev team should show their appreciation.

I assume i can speak for everyone here. People in this forum are working for free, making others profit. Now its their turn.

Regards
j0b

If this takes place... please DO NOT include me... I already got a very very GENEROUS donation from klee for my participation!    Wink

To be honest... I actually hope he has no regrets about it as my efforts reached a Dead End shortly after.    Embarrassed



You are probably the only one.. Smiley
gimre
Legendary
*
Offline Offline

Activity: 866
Merit: 1002



View Profile WWW
February 07, 2014, 05:20:34 PM
 #1178

although I posted in this thread, I find the idea lame...

NemusExMāchinā
Catapult docs: https://docs.symbol.dev
github: https://github.com/symbol
CrazyEyes
Full Member
***
Offline Offline

Activity: 137
Merit: 100


View Profile
February 07, 2014, 07:33:55 PM
Last edit: February 08, 2014, 11:54:54 AM by CrazyEyes
 #1179

Lame? well spoken. Looking for other investments so do what you want. I will hang around the irc channel and helping people out though, since i have done from december. Have met some really nice and talented people there. Godspeed everyone!

Regards
j0b
Eadeqa
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
February 07, 2014, 07:51:25 PM
 #1180

100K reward should go to him

https://nextcoin.org/index.php/topic,3884

Nomi, Shan, Adnan, Noshi, Nxt, Adn Khn
NXT-GZYP-FMRT-FQ9K-3YQGS
https://github.com/Lafihh/encryptiontest
Pages: « 1 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 [59] 60 61 62 63 64 65 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!