-
Notifications
You must be signed in to change notification settings - Fork 68
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
multi: rebase bcc onto staging #2
Changes from all commits
d1f3c2b
7127a82
afd34c4
4a0fb5c
7c8965d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ class ChainDB { | |
this.logger.info('Opening ChainDB...'); | ||
|
||
await this.db.open(); | ||
await this.db.verify(layout.V.build(), 'chain', 5); | ||
await this.db.verify(layout.V.build(), 'chain', 0x80 | 5); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what's this change for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's a flag for the chain type, so as to not confuse between forks. |
||
|
||
const state = await this.getState(); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,7 @@ exports.USER_AGENT = `/bcoin:${pkg.version}/`; | |
* @default | ||
*/ | ||
|
||
exports.MAX_MESSAGE = 4 * 1000 * 1000; | ||
exports.MAX_MESSAGE = 8 * 1000 * 1000; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How do we account for the next hard fork to 32MB, surely we're not just going to manually change this at the exact right time? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, we need to do that in next hard fork PR. |
||
|
||
/** | ||
* Amount of time to ban misbheaving peers. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these need to be
|=
instead of=
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming from the rebase. We can check this later.
edit: #6