Skip to content

Commit

Permalink
bitcoinj-0.17-alpha5
Browse files Browse the repository at this point in the history
creationTime() was renamed to getCreationTime()
  • Loading branch information
msgilligan committed Aug 17, 2024
1 parent 0513a66 commit f33f054
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class ECKeySpec extends Specification {
// This test is no longer directly testing the header because of changes in bitcoinj 0.15
key.toAddress(ScriptType.P2PKH, MAINNET).network() == MAINNET
key.toAddress(ScriptType.P2PKH, TESTNET).network() == TESTNET
key.creationTime().isPresent()
key.creationTime().ifPresent(t -> t.isAfter(Instant.EPOCH)) // since we created it, we know the creation time
key.getCreationTime().isPresent()
key.getCreationTime().ifPresent(t -> t.isAfter(Instant.EPOCH)) // since we created it, we know the creation time
}

def "Import a constant, publicly-known private key "() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class KeychainRoundTripStepwiseSpec extends DeterministicKeychainBaseSpec {
when:
DeterministicKey watchingKey = signingKeychain.getWatchingKey()
xpub = watchingKey.serializePubB58(network)
xpubCreationInstant = watchingKey.creationTime().orElseThrow(RuntimeException::new)
xpubCreationInstant = watchingKey.getCreationTime().orElseThrow(RuntimeException::new)

then:
xpub.length() > 0
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
consensusjVersion = 0.7.0-SNAPSHOT

bitcoinjVersion = 0.17-alpha3
bitcoinjVersion = 0.17-alpha5
rxJavaVersion = 3.1.7
groovyVersion = 4.0.19
junitJupiterVersion = 5.10.0
Expand Down

0 comments on commit f33f054

Please sign in to comment.