mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-20 02:11:40 +01:00
Increase offer message size (#4136)
This commit is contained in:
parent
8f02ebce10
commit
ee98aa1d30
@ -89,7 +89,7 @@ class DbManagementTest extends BitcoinSAsyncTest with EmbeddedPg {
|
||||
assert(flywayInfo.applied().length == expected)
|
||||
assert(flywayInfo.pending().length == 0)
|
||||
case PostgreSQL =>
|
||||
val expected = 6
|
||||
val expected = 7
|
||||
assert(result == expected)
|
||||
val flywayInfo = dlcAppConfig.info()
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
ALTER TABLE incoming_offers ALTER COLUMN message SET DATA TYPE VARCHAR(1024);
|
@ -12,9 +12,9 @@ case class IncomingDLCOfferDb(
|
||||
message: Option[String],
|
||||
offerTLV: DLCOfferTLV) {
|
||||
require(peer.forall(_.length <= 1024),
|
||||
"peer length must not exceed 1024 character")
|
||||
require(message.forall(_.length <= 280),
|
||||
"message length must not exceed 280 character")
|
||||
"peer length must not exceed 1024 characters")
|
||||
require(message.forall(_.length <= 1024),
|
||||
"message length must not exceed 1024 characters")
|
||||
}
|
||||
|
||||
object IncomingDLCOfferDbHelper {
|
||||
|
Loading…
Reference in New Issue
Block a user