Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch up davids repo #1

Open
wants to merge 670 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
670 commits
Select commit Hold shift + click to select a range
0358c38
documentation for the gitian building
robvanmieghem Mar 13, 2015
11b642a
Adapted the gitian build descriptors
robvanmieghem Mar 13, 2015
2d3d938
use osx sdk 10.7
robvanmieghem Mar 13, 2015
f295069
still remaining sdk10.9 reference
robvanmieghem Mar 13, 2015
a80766a
Updated contrib/depends
robvanmieghem Mar 13, 2015
f06a749
Added depends makefile
robvanmieghem Mar 13, 2015
86cfd3e
remove troubled libs from contrib/depends
robvanmieghem Mar 13, 2015
227bf2a
and from the darwin native packages list
robvanmieghem Mar 13, 2015
1d45fd8
And from the native_cctools dependencies
robvanmieghem Mar 14, 2015
21aa0bb
older depends set
robvanmieghem Mar 15, 2015
7bfcec1
Remove unexisting sources used in dist target
robvanmieghem Mar 15, 2015
0b50aba
remove references to src/leveldb in make dist
robvanmieghem Mar 15, 2015
d1c5488
get rid of strlcpy.h
laanwj Oct 2, 2012
51dbeb6
remove leftover strlcpy copyright
robvanmieghem Mar 15, 2015
97b81fb
Added missing sph_types.h to makefile
robvanmieghem Mar 15, 2015
5c421e0
Added missing scrypt_mine.h to makefile
robvanmieghem Mar 15, 2015
c47f19c
added missing hashblock.h to makefile
robvanmieghem Mar 15, 2015
511e252
added missing aes_helper.c to makefile
robvanmieghem Mar 15, 2015
d4295f8
apparently qcomboboxfiltercoins is not used
robvanmieghem Mar 15, 2015
0606e9a
remove obsolete uritests
robvanmieghem Mar 16, 2015
796d675
And remove from the makefile
robvanmieghem Mar 16, 2015
c5384d9
Revert "And remove from the makefile"
robvanmieghem Mar 16, 2015
703accb
Revert "remove obsolete uritests"
robvanmieghem Mar 16, 2015
26ecf4c
Add mining.png to the makefile
robvanmieghem Mar 17, 2015
c4d5fba
Added missing blexp.png to the makefile
robvanmieghem Mar 18, 2015
606469f
Added missing info.png to the makefile
robvanmieghem Mar 18, 2015
64893e6
Added missing mining_inactive.png to the makefile
robvanmieghem Mar 18, 2015
57f21a3
Added missing s4c.png to the makefile
robvanmieghem Mar 18, 2015
bdee341
Added missing movies to the makefile
robvanmieghem Mar 18, 2015
c84de1f
Merge pull request #21 from robvanmieghem/master
hyperstake Mar 19, 2015
84b4374
Double check for mintable coins
presstab Apr 15, 2015
58894ba
remove printf error from kernel to prevent log growth
presstab Apr 15, 2015
41693fe
multisend GUI part 1
presstab May 20, 2015
005b301
add on_changeaddressbookbutton_clicked()
presstab May 20, 2015
b9e6804
check for reservebalance CWallet::MintableCoins()
presstab May 20, 2015
56f5b04
MultiSend GUI part II
presstab May 20, 2015
bf61c87
v 1.1.1.0
presstab May 20, 2015
00c0270
adjust charitydialog spacing for linux
presstab May 20, 2015
258b605
charitydialog linux 2
presstab May 20, 2015
f90e827
fix grabbing wrong age for coin selection
presstab May 22, 2015
4a85d89
bump build # v1.1.1.1
presstab May 22, 2015
7795511
fix mintable coins
presstab May 22, 2015
9df2386
remove checkpoint server errors
presstab May 29, 2015
9f274a7
bump build v1.1.1.2
presstab May 29, 2015
d326167
Package the themes in the osx application bundle
robvanmieghem Jun 2, 2015
9a3ffa3
Merge pull request #27 from robvanmieghem/master
Jun 2, 2015
d7c9d12
Update Makefile.am
Jun 6, 2015
02f5aac
replace seednode
presstab Jun 8, 2015
5605ef3
Merge pull request #29 from billotronic/master
presstab Jun 17, 2015
d85d790
fix weight calc in cclistcoins RPC
presstab Jun 19, 2015
3bc2411
hashdrift default 45 sec, user rpc command
presstab Jun 24, 2015
8a92f01
dont allow user to enter hashdrift higher than 60 seconds
presstab Jun 25, 2015
f683a2e
calcdialog.cpp remove extra includes
presstab Jun 25, 2015
b37c1dc
fix address book button for multisend GUI
presstab Jun 25, 2015
355e80b
Change max outbound connections to 125
presstab Jun 25, 2015
e6de120
Revert "Change max outbound connections to 125"
presstab Jun 25, 2015
3b253ac
hashsettings RPC
presstab Jun 26, 2015
df4acb1
bump build 1.1.1.3
Jun 29, 2015
ffc6d88
bump build 1.1.1.3
Jun 29, 2015
b97b0cf
bump build 1.1.1.3
Jun 29, 2015
a181daa
remove old IRC code
noise23 Jun 23, 2015
8ddfc51
Revert "remove old IRC code"
presstab Jul 23, 2015
2552363
remove old IRC code
presstab Jul 23, 2015
24b9867
Revert "add privkeydump security warnings"
presstab Jul 23, 2015
83065d8
distinguish between IsConfirmed & IsConfirmedInMainChain
presstab Jul 31, 2015
3d77b35
add default return on a void function
presstab Jul 31, 2015
6661c75
updated qt5 dependencies
Aug 8, 2015
44f7feb
MultiSend in CoinStake Transaction
presstab Oct 5, 2015
806e1ca
make sure staking address shows up on transaction record
presstab Oct 5, 2015
0dde176
remove bug causing stake to split if MultiSend enabled
presstab Oct 13, 2015
3da92b7
gettxfee RPC call
presstab Oct 16, 2015
97b3847
fix cclistcoins potential stake calculation
presstab Oct 26, 2015
7e95a3f
another correction to cclistcoins potential stake
presstab Oct 26, 2015
3ddb73a
Do not query MintableCoins() as frequently
presstab Nov 2, 2015
dbb7b9f
Keep stake coins set in memory instead of iterating every time we hash
presstab Nov 2, 2015
e0a2f20
Changed date labels to hidden, added text selectable to total
Nov 3, 2015
9fe865e
Merge pull request #31 from lightsplasher/master
presstab Nov 3, 2015
d108bea
add support for miniupnpc api version 14
perl5577 Nov 4, 2015
e0ef052
Merge pull request #32 from perl5577/patch-1
presstab Nov 6, 2015
8c68e7f
add ability to turn off dust collector in coinstake
presstab Nov 6, 2015
d6cf70f
Merge pull request #1 from hyperstake/master
presstab Nov 30, 2015
3aa19b9
Use GetProofOfStakeReward() to calc reward for stake split calcs
presstab Nov 30, 2015
9246e03
Merge pull request #33 from presstab/master
presstab Nov 30, 2015
7659874
fill in information about hashsettings combinedust
presstab Nov 30, 2015
df5137d
Merge pull request #34 from presstab/master
presstab Nov 30, 2015
03aac20
Fix invalid signature with crafted length
presstab Dec 3, 2015
e9299f3
update hard checkpoints
presstab Dec 3, 2015
562d979
bump to v1.1.2
presstab Dec 3, 2015
fb34a3a
Merge pull request #35 from presstab/master
presstab Dec 3, 2015
67d3be3
v1.1.2
presstab Dec 3, 2015
f3f9ec6
Merge pull request #36 from presstab/master
presstab Dec 3, 2015
b1884a2
Update build-unix.md
presstab Jan 1, 2016
c91f0b9
allow spending of unconfirmed inputs if they are your own
presstab Jan 13, 2016
204cab6
Merge pull request #38 from presstab/master
presstab Jan 13, 2016
db537be
replace MNT reference
presstab Jan 23, 2016
5623a1b
reduce QT resource consumption by calling for less updates
presstab Feb 21, 2016
e25e6a1
add block hash to index (WARNING requires resync!!)
presstab Feb 21, 2016
bc99781
optimize bootstrapping
presstab Feb 22, 2016
9632066
add missing line
presstab Feb 22, 2016
68c7598
speed up coincontroldialog
presstab Feb 23, 2016
241fd88
Prevent Transmission of Empty tx
presstab Apr 15, 2016
dda9d60
Avoid querying DNS seeds, if we have open connections.
presstab Apr 15, 2016
685a424
Don't poll showmyip.com, it doesn't exist anymore
presstab Apr 15, 2016
0a34196
Correct some proxy related socket leaks.
presstab Apr 15, 2016
fbac29d
Prevent socket leak in ThreadSocketHandler.
presstab Apr 15, 2016
43c6ef3
Autogen.sh requires aclocal from this package
May 28, 2016
2f5ffd2
Merge pull request #40 from billotronic/master
presstab May 29, 2016
c1c6615
Update build-osx.md
davidlatapie Jul 1, 2016
1b54f92
Merge pull request #41 from davidlatapie/patch-1
presstab Jul 1, 2016
5be4b00
bump to v1.1.3
presstab Jul 1, 2016
c48133e
Remove checkpoint server
presstab May 23, 2017
2151d9e
Merge pull request #48 from presstab/master
presstab Jun 6, 2017
7125d31
[RPC] do not allow ccsend while wallet is unlocked for minting
presstab Jun 6, 2017
aa86ef5
Store wallet's total weight from hash calculation
presstab Jun 7, 2017
e1895f6
refactor GetStakeWeight() and add GetTimeToNextMaturity()
presstab Jun 7, 2017
7ee0cb8
Do not rehash block on load if the block hash is stored
presstab Jun 8, 2017
c8a8109
Merge pull request #49 from presstab/master
presstab Jun 8, 2017
6fdea9f
change bitwise negate to negative
presstab Jun 12, 2017
59b3e4d
Update readme to include build instructions
presstab Jun 12, 2017
22a8457
Merge pull request #50 from presstab/master
presstab Jun 13, 2017
228f946
reduce staking resource consumption, add getstakingstatus
presstab Jun 19, 2017
7bf0bb1
Merge pull request #51 from presstab/master
presstab Jun 19, 2017
beb7dee
GetWeightSpent() GetAverageWeightOverPeriod()
presstab Jun 19, 2017
9ba8d81
Update README.md
joen Jun 26, 2017
747274c
Merge pull request #52 from joen/patch-1
presstab Jun 27, 2017
ef1b1de
Update calcDialog to suggest sizes based off of network stats
presstab Jun 29, 2017
c251c40
Adjust coin control weight display to be simpler, adjust stake time e…
presstab Jun 30, 2017
9e0ecbc
bump to v1.1.4
presstab Jun 30, 2017
8ee602f
remove temporary block code
presstab Jun 30, 2017
fbcec72
Merge pull request #53 from presstab/master
presstab Jun 30, 2017
19130f4
Add BIP38 encrypt/decrypt tools.
presstab Sep 15, 2017
3d3c870
Merge pull request #54 from presstab/master
presstab Sep 15, 2017
3fc4318
Add -stakeaddress startup flag.
presstab Nov 16, 2017
19cf8e0
Move block versioning to the first four bits of nVersion.
presstab Nov 16, 2017
fdc3932
More accurate tracking of staking status.
presstab Dec 5, 2017
9053714
Cache CBlock::GetHash() to reduce resource consumption from rehashing.
presstab Dec 5, 2017
4d7f112
Fix time to maturity display.
presstab Dec 6, 2017
15838d3
Merge pull request #60 from presstab/v1.0.5-dev
presstab Dec 6, 2017
aca214f
Comment out block version checking in SetBestChain.
presstab Dec 6, 2017
29cdad4
Update checkpoints.
presstab Dec 6, 2017
2eb5697
Add windows compile script. Remove secp256k1 lib.
presstab Dec 8, 2017
a824d2b
Initial sketch of CreateProposal
tuningmind Dec 8, 2017
e4d212f
Merge pull request #61 from presstab/windows_compile
presstab Dec 8, 2017
b5ea07d
Set up CreateProposal in rpcblockchain
tuningmind Dec 8, 2017
d2d28c4
Fix for C++11 compile on MacOS
jonspock Dec 9, 2017
05c5e75
Merge pull request #62 from jonspock/master
presstab Dec 9, 2017
ed45684
Fix heading in README.md
mwleeds Dec 10, 2017
a58ce3d
Add fuzzbawls.pw DNS seeder for better connectivity.
presstab Dec 12, 2017
24ac150
Merge pull request #64 from presstab/DNS_Seeder
presstab Dec 12, 2017
06bb674
Merge pull request #63 from mwleeds/patch-1
presstab Dec 12, 2017
5ba2c14
Initial sketch of CreateProposal
tuningmind Dec 8, 2017
c06c9a4
Set up CreateProposal in rpcblockchain
tuningmind Dec 8, 2017
e98a124
RPC createproposal working
tuningmind Dec 13, 2017
fb148a5
Update .gitignore
presstab Dec 13, 2017
af191cf
RPC createproposal working
tuningmind Dec 13, 2017
14fb746
Initial mock out of CastVote
tuningmind Dec 13, 2017
55c1b79
Add VoteProposal serialization and the ability to add to a transaction.
presstab Dec 13, 2017
8fdadb2
Outline voteobject
tuningmind Dec 14, 2017
c692a3e
Fix voteproposal compiler errors and add it to makefile.
presstab Dec 14, 2017
820210c
Set up test of ConstructTransaction
tuningmind Dec 14, 2017
d5b422c
Initial mock out of CastVote
tuningmind Dec 13, 2017
e4babc5
sendproposal RPC will broadcast voteproposal to the network.
presstab Dec 14, 2017
eaa649f
Resolve merge conflict
tuningmind Dec 14, 2017
17242a9
Merge branch 'voting' of https://github.com/presstab/HyperStake into …
tuningmind Dec 14, 2017
e90c0df
VoteObject called from createproposal
tuningmind Dec 16, 2017
3305cbe
Add deserialization of proposals.
presstab Dec 29, 2017
486de10
Monitor incoming blocks for proposals.
presstab Dec 29, 2017
40b9be0
Add CVoteDB and database proposals.
presstab Dec 29, 2017
e7ec9e2
Update build instructions with libdb5.3.
presstab Jan 5, 2018
f421061
Merge pull request #65 from presstab/build_instructions
presstab Jan 5, 2018
20d8c75
Remove unneeded class
tuningmind Dec 19, 2017
5f630f9
Ignore all .idea files
tuningmind Dec 20, 2017
cede4ab
Initial votetally header
tuningmind Dec 21, 2017
c185769
Tally with GetVoteFromHeader via VoteObject
tuningmind Dec 21, 2017
c20d88b
matching tally signatures for proposal
tuningmind Dec 22, 2017
208277e
wip return yes tally
tuningmind Dec 22, 2017
d41d5aa
refactor
tuningmind Jan 2, 2018
43b2a07
wip
tuningmind Jan 2, 2018
f6ca1e2
add protobuf and eclipse to gitignore
tuningmind Jan 2, 2018
9d02519
PrintBinary working in rpc
tuningmind Jan 4, 2018
5790c8c
Proposal manager prints out proposals from rpc call
tuningmind Jan 5, 2018
580827b
Use mapPendingProposals for proposals that are net yet on the chain.
presstab Jan 9, 2018
20af608
Voting RPC calls, Votes are databased, Adding Votes to nVersion of St…
blondfrogs Jan 11, 2018
ebeb147
Merge pull request #3 from blondfrogs/voting-jeremy
presstab Jan 16, 2018
5e26060
Add proposal fee to vote.
presstab Feb 2, 2018
3d7e17a
Add ui_bip38tooldialog.h to gitignore
presstab Feb 4, 2018
f9401f4
Fix OP_RETURN being considered nonstandard.
presstab Feb 4, 2018
cfdbcbe
Make c++11 standard compile.
presstab Feb 4, 2018
5467b95
listproposals RPC, adjust sendproposal fee amounts.
presstab Feb 4, 2018
c241c2c
Final tweaks to make voteproposal work and able to be sent/added to t…
presstab Feb 5, 2018
73c8266
Add -staking startup arg.
presstab Feb 5, 2018
9cacf0f
Load vote proposals on init.
presstab Feb 6, 2018
c11fc10
Refactor votetally. Add votetally's to each block index.
presstab Feb 7, 2018
3d50964
Initial commit charset branch
tuningmind Feb 12, 2018
eef40f9
Use uint160 to hold hex values
tuningmind Feb 13, 2018
9d88d84
Partially done voting charset.
presstab Feb 23, 2018
ba58804
Track current active proposals using proposal manager.
presstab Feb 23, 2018
f03d88e
temp staging
presstab Feb 25, 2018
976b956
Work through various voting bugs.
presstab Feb 27, 2018
1f990e2
Fix parsing of block's votes.
presstab Feb 28, 2018
c0ca765
Add voting, createproposal, and proposals dialogs.
presstab Mar 2, 2018
61269e8
create proposal dialog
presstab Mar 2, 2018
4b2a59c
Add proposals to proposalsdialog, update their current voting status.
presstab Mar 2, 2018
092f08d
Modifications to createproposaldialog and proposal creation process.
presstab Mar 4, 2018
61c2b3a
Replace wrong GetTransaction() method.
presstab Apr 3, 2018
8673b5f
temp_voting
presstab Apr 5, 2018
2457703
Working proposals and votes.
presstab Apr 7, 2018
97c1a22
Add GUI for setting votes and modify other voting-related GUI. (#68)
APosselli Apr 8, 2018
a706206
refactoring vote/proposal representation (#69)
IgorDurovic Apr 10, 2018
b25fe17
Voting tests (#71)
IgorDurovic Apr 10, 2018
e73dd90
Merge branch 'temp_voting' of http://github.com/hyperstake/hyperstake…
presstab Apr 21, 2018
1c83e86
Do not activate voting until a certain block height.
presstab Apr 21, 2018
3dc297e
Merge pull request #72 from hyperstake/dev_voting
presstab Apr 21, 2018
461f0ee
Don't serialize votetally unless needed.
presstab Apr 21, 2018
d6d9be3
Merge pull request #73 from hyperstake/serialization
presstab Apr 21, 2018
3c09df8
Replace mng files with gifs, since qt no longer supports mng files. M…
APosselli Apr 8, 2018
b71632e
Merge pull request #74 from APosselli/movie_replacement
presstab Apr 21, 2018
7aeac30
Clean up compiler warnings.
presstab Apr 21, 2018
a4aabf8
Merge pull request #75 from presstab/compiler_warnings
presstab Apr 21, 2018
f2051c2
preventing DoS attacks using invalid proposals that are also valid tr…
IgorDurovic Apr 26, 2018
8f6c912
Bump to v1.1.5.
presstab Apr 27, 2018
1356290
Update depends.
presstab May 4, 2018
709ec00
Fix splashscreen and icons.
presstab May 6, 2018
b3caed0
Merge pull request #78 from presstab/new_deps
presstab May 8, 2018
2ad2d1b
Fix OpenSSL v1.1 compatibility
hrobeers Aug 7, 2017
e907ecf
Fix compiler errors associated with updated OPENSSL compat.
presstab May 8, 2018
c2f2a53
Merge pull request #79 from presstab/openssl1.1
presstab May 8, 2018
06e5b2f
Move stake mining code to miner.cpp.
presstab May 16, 2018
bcf28ee
Reorder check for mintable coins.
presstab May 16, 2018
062150b
Merge pull request #81 from presstab/stake_miner
presstab May 17, 2018
6f5c1d8
Merge pull request #76 from IgorDurovic/mempool_proposal_check
presstab May 17, 2018
ab8312a
[Depends] Compile dependencies with qt gif enabled.
presstab May 30, 2018
e47956b
Remove spammy log prints.
presstab May 30, 2018
1e9aa02
Merge pull request #82 from presstab/depends
presstab May 30, 2018
bb513e3
Merge pull request #83 from presstab/logs
presstab May 30, 2018
7f8ac10
Don't perform full signature checks and PoS checks on blocks older th…
presstab Jun 1, 2018
f0786a3
Fix segfault on repairwallet.
presstab Jun 1, 2018
fd4c2c5
Use the actual time from the transaction for QT transaction records.
presstab Jun 1, 2018
83aa610
Merge pull request #84 from presstab/syncing_txrecord
presstab Jun 2, 2018
11cf18f
added anonymous namespace to voteproposalmanager for helper functions
IgorDurovic Jun 2, 2018
852bc61
created Event struct for efficient computation of overlapping voting …
IgorDurovic Jun 2, 2018
a766f26
GetMaxOverlap() method implemented to efficiently calculate the maxim…
IgorDurovic Jun 2, 2018
3b5bcc5
Implement resource usage heuristic calculation for new proposals
IgorDurovic Jun 2, 2018
f90a08a
added self contained utility method for querying overlapping proposals
IgorDurovic Jun 2, 2018
853e7fe
created const string variables to hold voting error messages
IgorDurovic Jun 2, 2018
0ef0271
added testing process for deterministic ordering calculation. Comment…
IgorDurovic Jun 2, 2018
4c31b82
created unit test in voting_tests for the future refund process for v…
IgorDurovic Jun 2, 2018
c672aa2
Merge pull request #85 from IgorDurovic/voting_utils
presstab Jun 2, 2018
7fd56c0
Change default split threshold to 10,000.
presstab Jun 2, 2018
aad681f
Bump build to 1.1.5.1
presstab Jun 2, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix compiler errors associated with updated OPENSSL compat.
presstab committed May 8, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e907ecf80afe81f2eaccbe7af41102114d4c1817
15 changes: 0 additions & 15 deletions src/bignum.h
Original file line number Diff line number Diff line change
@@ -180,21 +180,6 @@ class CBigNum
BN_mpi2bn(pch, p - pch, self);
}

uint64 getuint64()
{
unsigned int nSize = BN_bn2mpi(this, NULL);
if (nSize < 4)
return 0;
std::vector<unsigned char> vch(nSize);
BN_bn2mpi(this, &vch[0]);
if (vch.size() > 4)
vch[4] &= 0x7f;
uint64 n = 0;
for (unsigned int i = 0, j = vch.size()-1; i < sizeof(n) && j >= 4; i++, j--)
((unsigned char*)&n)[i] = vch[j];
return n;
}

void setuint64(uint64 n)
{
unsigned char pch[sizeof(n) + 6];
2 changes: 2 additions & 0 deletions src/key.h
Original file line number Diff line number Diff line change
@@ -14,6 +14,8 @@
#include "uint256.h"
#include "util.h"

#include <openssl/ec.h>

// secp160k1
// const unsigned int PRIVATE_KEY_SIZE = 192;
// const unsigned int PUBLIC_KEY_SIZE = 41;
32 changes: 0 additions & 32 deletions src/script.cpp
Original file line number Diff line number Diff line change
@@ -776,11 +776,6 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co

case OP_ADD:
case OP_SUB:
case OP_MUL:
case OP_DIV:
case OP_MOD:
case OP_LSHIFT:
case OP_RSHIFT:
case OP_BOOLAND:
case OP_BOOLOR:
case OP_NUMEQUAL:
@@ -809,33 +804,6 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, co
bn = bn1 - bn2;
break;

case OP_MUL:
if (!BN_mul(&bn, &bn1, &bn2, pctx))
return false;
break;

case OP_DIV:
if (!BN_div(&bn, NULL, &bn1, &bn2, pctx))
return false;
break;

case OP_MOD:
if (!BN_mod(&bn, &bn1, &bn2, pctx))
return false;
break;

case OP_LSHIFT:
if (bn2 < bnZero || bn2 > CBigNum(2048))
return false;
bn = bn1 << bn2.getulong();
break;

case OP_RSHIFT:
if (bn2 < bnZero || bn2 > CBigNum(2048))
return false;
bn = bn1 >> bn2.getulong();
break;

case OP_BOOLAND: bn = (bn1 != bnZero && bn2 != bnZero); break;
case OP_BOOLOR: bn = (bn1 != bnZero || bn2 != bnZero); break;
case OP_NUMEQUAL: bn = (bn1 == bn2); break;